[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: JarFile

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@xxxxxxx> ??????:9a116db84ee065ee636b5c1d8556c74e$1@xxxxxxxxxxxxxxxxxx


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