Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » NoClassDefFoundError(Problem with swt.jar on Windows)
NoClassDefFoundError [message #487271] Tue, 22 September 2009 15:57
Mark Fenbers is currently offline Mark FenbersFriend
Messages: 72
Registered: July 2009
Location: Ohio, USA
I've seen errors NoClassDefFoundException and ClassNotFoundExceptions more than I am willing to admit, and I have always been able to solve them rather easily. But I've got one now that has baffled me for almost 6 hours now.

The obvious things to look for is if swt.jar is in the jar's manifest... It is, along with a dozen or so other jars that don't generate errors. And so I made sure the Windows version (XP) of swt.jar was in the current working directory along with all the other jars the program needs. I downloaded the latest ( just to make sure.

I also tried explicitly setting the CLASSPATH environment var to include swt.jar (shouldn't need to, though, if it is in the ClassPath of the manifiest file). So I'm at my wits end as to why I get the error below. Anyone have any ideas?

O:\mark\GIFTS>java -jar GIFTS.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/inter
at gov.noaa.ohrfc.GIFTS.main(
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.internal.win32.TEXT
at$ Source)
at Method)
at Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 1 more
Previous Topic:Text Field with buttons in it
Next Topic:SWT. Table with Table Editor
Goto Forum:

Current Time: Sat Dec 14 10:02:49 GMT 2019

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

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

Back to the top