Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » JarFile
JarFile [message #461472] Sun, 25 September 2005 21:33 Go to next message
S Iyengar is currently offline S IyengarFriend
Messages: 8
Registered: July 2009
Junior Member
Hi,

I keep getting the following error when i try to execute
java -jar myapp.jar. i use eclipse 3.1 and suns jdk 1.5.0_05

Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/swt/widgets/Decorations

I get this error both on XP and linux gtk.
my classpath and library are set to the swt.jar and the directory where
the library files are .

Could some one please help..


Thanks,
Sundar
Re: JarFile [message #461474 is a reply to message #461472] Mon, 26 September 2005 00:01 Go to previous messageGo to next message
Sean is currently offline SeanFriend
Messages: 20
Registered: July 2009
Junior Member
Hi Sundar

I think you have packaged the class Decorations user "pakage
org.clipse.swt.widgets".
When a class is not use Default package,you can't identify it only oue it's
name "Decorations".

Try to indentify you main class like this: Main-Class:
org/eclipse/swt/widgets/Decorations
Added this information to you manifest file and run it again!!

good luck

Sean


"Sundar Iyengar" <ski@efn.org>
??????:9a116db84ee065ee636b5c1d8556c74e$1@www.eclipse.org...
> Hi,
>
> I keep getting the following error when i try to execute java -jar
> myapp.jar. i use eclipse 3.1 and suns jdk 1.5.0_05
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/eclipse/swt/widgets/Decorations
>
> I get this error both on XP and linux gtk.
> my classpath and library are set to the swt.jar and the directory where
> the library files are .
>
> Could some one please help..
>
>
> Thanks,
> Sundar
>
Re: JarFile [message #461480 is a reply to message #461474] Mon, 26 September 2005 09:26 Go to previous messageGo to next message
Stefan Langer is currently offline Stefan LangerFriend
Messages: 236
Registered: July 2009
Senior Member
Try setting the classpath of your 3rd party libs in the manifest of your
jar.

Regards
Stefan

Sean wrote:
> Hi Sundar
>
> I think you have packaged the class Decorations user "pakage
> org.clipse.swt.widgets".
> When a class is not use Default package,you can't identify it only oue it's
> name "Decorations".
>
> Try to indentify you main class like this: Main-Class:
> org/eclipse/swt/widgets/Decorations
> Added this information to you manifest file and run it again!!
>
> good luck
>
> Sean
>
>
> "Sundar Iyengar" <ski@efn.org>
> ??????:9a116db84ee065ee636b5c1d8556c74e$1@www.eclipse.org...
>
>>Hi,
>>
>>I keep getting the following error when i try to execute java -jar
>>myapp.jar. i use eclipse 3.1 and suns jdk 1.5.0_05
>>
>>Exception in thread "main" java.lang.NoClassDefFoundError:
>>org/eclipse/swt/widgets/Decorations
>>
>>I get this error both on XP and linux gtk.
>>my classpath and library are set to the swt.jar and the directory where
>>the library files are .
>>
>>Could some one please help..
>>
>>
>>Thanks,
>>Sundar
>>
>
>
>
Re: JarFile [message #461704 is a reply to message #461480] Tue, 27 September 2005 16:34 Go to previous message
S Iyengar is currently offline S IyengarFriend
Messages: 8
Registered: July 2009
Junior Member
Thank you Sean and Stefan..

I got the porgram to work by adding myapp.jar file to the classpath and me
using MyAppMain as a commandline param. ofcourse the libarary path also
need to be set.

However, java -jar myapp.jar does not work despite the classpath and the
library path being set.

--Sundar
Previous Topic:Standalone SWT cheat sheet - puzzled
Next Topic:preserving tree state when updating viewer input
Goto Forum:
  


Current Time: Sun Aug 25 04:56:46 GMT 2019

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

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

Back to the top