running an application outside Eclipse [message #160591] |
Tue, 25 May 2004 14:36 |
Eclipse User |
|
|
|
Originally posted by: christian_mangeot.ibi.com
I created an app using Eclipe M8. I am trying to run this app outside
Eclipse.
On a clean box I installed the jre 1.4.2_04 and swt-3.0M8-win32.zip (copying
the dll's into windows\system32).
After I created a jar from my app (say fred.jar) I copied it in a
directory.
I set CLASSPATH=. and I do java -jar fred.jar
I am getting
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/swt/graph/Device
Same behaviour if I copy swt.jar in the current directory.
What am I doing wrong ?
|
|
|
Re: running an application outside Eclipse [message #160837 is a reply to message #160591] |
Wed, 26 May 2004 08:30 |
Eclipse User |
|
|
|
Originally posted by: thomas_maeder.ch.ibm.com
CLASSPATH=.;swt.jar
you have to put the jar file on the classpath, not the directory
containing the jar.
Thomas
Christian Mangeot wrote:
> I created an app using Eclipe M8. I am trying to run this app outside
> Eclipse.
> On a clean box I installed the jre 1.4.2_04 and swt-3.0M8-win32.zip (copying
> the dll's into windows\system32).
> After I created a jar from my app (say fred.jar) I copied it in a
> directory.
> I set CLASSPATH=. and I do java -jar fred.jar
> I am getting
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/eclipse/swt/graph/Device
> Same behaviour if I copy swt.jar in the current directory.
> What am I doing wrong ?
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02923 seconds