Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » make a jar
make a jar [message #62214] Thu, 18 March 2004 19:24 Go to next message
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 17:51 Go to previous message
Maarten Bodewes is currently offline Maarten Bodewes
Messages: 44
Registered: July 2009
Member
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 17:51 Go to previous message
Maarten Bodewes is currently offline Maarten Bodewes
Messages: 44
Registered: July 2009
Member
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
Previous Topic:cvs [server aborted]: cannot find .: No such file or directory
Next Topic:[ANN] IntraWeb for Eclipse Beta now available!
Goto Forum:
  


Current Time: Thu Oct 23 08:43:29 GMT 2014

Powered by FUDForum. Page generated in 0.01524 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software