Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » running an application outside Eclipse
running an application outside Eclipse [message #160591] Tue, 25 May 2004 14:36 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 ?
>
>
>
Previous Topic:Undoing in wrong place
Next Topic:Migrate all project to new Eclipse Version
Goto Forum:
  


Current Time: Thu Dec 26 15:24:42 GMT 2024

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

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

Back to the top