Adding jar error

22 views
Skip to first unread message

Fausto Santillan

unread,
Oct 11, 2016, 11:42:19 PM10/11/16
to JFXtras Developers
Hello, im learning about javafx and i see the extra examples, i download the samples jar but when i try to use one segment of code i have this error:

AgendaSample1.java:27: error: package jfxtras.samples does not exist

import jfxtras.samples.JFXtrasSampleBase;


So i try to include the jar jfxtras-labs-8.0-r6-20161011.080154-126.jar in the folder /Library/Java/Extensions, but i have the same error...


can you help me?


thanks in advance

tbeernot

unread,
Oct 12, 2016, 12:21:42 AM10/12/16
to jfxtr...@googlegroups.com
I'm not sure what you mean with "try to use one segment of code". But if I download the samples and run it, I get an awful lot of ERROR lines (which is a known issue), but then the samples do come up. The error you are describing I do not know, so I need more information.

Tom
--
You received this message because you are subscribed to the Google Groups "JFXtras Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jfxtras-dev...@googlegroups.com.
To post to this group, send email to jfxtr...@googlegroups.com.
Visit this group at https://groups.google.com/group/jfxtras-dev.
For more options, visit https://groups.google.com/d/optout.


Fausto Santillan

unread,
Oct 13, 2016, 1:22:58 AM10/13/16
to JFXtras Developers
Basically, i download the samples and try to compile them in a terminal but i get this and more errors:

AgendaSample1.java:27: error: package jfxtras.samples does not exist

import jfxtras.samples.JFXtrasSampleBase;


i know that is because i dont set the library but i don know how do that or what i should do to compile them individually.
Because i want to use them in an aplication that im developing.

tbeernot

unread,
Oct 13, 2016, 1:27:28 AM10/13/16
to jfxtr...@googlegroups.com
You are totally not giving me any information to work with. If you are using Gradle to compile the samples, it will download all required JFXtras jars, so you are not doing that. If you opened the Gradle project in an IDE, then it will do that for you. I think you need to read about java, compilation and the classpath. There are an awful lot of way to do that. But you problem has nothing to do with JFXtras or the samples.

http://javarevisited.blogspot.nl/2012/10/5-ways-to-add-multiple-jar-to-classpath-java.html



On 13-10-2016 01:42, Fausto Santillan wrote:
Reply all
Reply to author
Forward
0 new messages