make a jar [message #62214] |
Thu, 18 March 2004 14:24  |
Eclipse User |
|
|
|
Originally posted by: rama.rama.com
hello,
i have take a look to ml archive and think like that, but i cannot find the
information that i need...
also, please sorry because my question is very silly, i know.
If this is the bad place to find this kind of answare please let me know.
anyway...i have made a little application that use skinlf....
i have hit "propriety" then "java built path" selected "libraries" and "Add
externa JARs.." so i have added skinlf.jar...
so now i can import
com.l2fprod.gui.plaf.skin.SkinLookAndFeel
Now i would like to made a jar file so people can use the application, but i
find difficulty...
when i try to execute the jar (create via export facility) java -jar
casa_client.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
com/l2fprod/gui/plaf/
skin/SkinLookAndFeel
maybe there is something that i don't know about java, i am not able to add
the jar in this way...the only way that i have to use the program is to run
it via RUN in eclipse (or remove the skinlf support)
best regards, tnx for help!
Rama
|
|
|
Re: make a jar [message #62290 is a reply to message #62214] |
Thu, 25 March 2004 12:51  |
Eclipse User |
|
|
|
rama wrote in:
> anyway...i have made a little application that use skinlf....
> i have hit "propriety" then "java built path" selected "libraries" and
> "Add externa JARs.." so i have added skinlf.jar...
>
> so now i can import
>
> com.l2fprod.gui.plaf.skin.SkinLookAndFeel
>
> Now i would like to made a jar file so people can use the application,
> but i find difficulty...
>
The thing about .jar files is that they are ZIP files really. They open
with WinZip and you can extract them to anywhere. So the most easy way to
do this is to unpack the jar, add their class (and other) files your
files (make sure that the packages are on the same level) and jar the
whole thing up. Make sure that you keep/follow any license agreement
though.
Another way to do is to distribute both packages and make sure that the
other .jar is in the classpath. You could do this by running them from a
windows shortcut, script or batch files and the java(w) -cp classpath
option. Or build an executable for it a la Eclipse, but I would not do
that after reading into JNI.
Maarten
|
|
|
Re: make a jar [message #596939 is a reply to message #62214] |
Thu, 25 March 2004 12:51  |
Eclipse User |
|
|
|
rama wrote in:
> anyway...i have made a little application that use skinlf....
> i have hit "propriety" then "java built path" selected "libraries" and
> "Add externa JARs.." so i have added skinlf.jar...
>
> so now i can import
>
> com.l2fprod.gui.plaf.skin.SkinLookAndFeel
>
> Now i would like to made a jar file so people can use the application,
> but i find difficulty...
>
The thing about .jar files is that they are ZIP files really. They open
with WinZip and you can extract them to anywhere. So the most easy way to
do this is to unpack the jar, add their class (and other) files your
files (make sure that the packages are on the same level) and jar the
whole thing up. Make sure that you keep/follow any license agreement
though.
Another way to do is to distribute both packages and make sure that the
other .jar is in the classpath. You could do this by running them from a
windows shortcut, script or batch files and the java(w) -cp classpath
option. Or build an executable for it a la Eclipse, but I would not do
that after reading into JNI.
Maarten
|
|
|
Powered by
FUDForum. Page generated in 0.03306 seconds