Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-swt-dev] desperate : NoClassDefFoundError on Composite

Thanks for the answers, Tom Schindl showed me the error in my ways... I
never had jface.jar near my deployment.

-----Original Message-----
From: platform-swt-dev-admin@xxxxxxxxxxx
[mailto:platform-swt-dev-admin@xxxxxxxxxxx] On Behalf Of Sam Detweiler
Sent: 29 October 2004 02:19 PM
To: platform-swt-dev@xxxxxxxxxxx
Subject: Re: [platform-swt-dev] desperate : NoClassDefFoundError on
Composite






did you copy/include swt.jar and the dll supporting swt.jar to the
classpath and path?

I did this very thing a month ago.

Sam

email sdetweil@xxxxxxxxxx
http://www.ibm.com/able


 

             "Johan Wasserman

             - BCX -

             Infrastructure
To 
             Services"                 <platform-swt-dev@xxxxxxxxxxx>

             <Johan.Wasserman@
cc 
             bcx.co.za>

             Sent by:
Subject 
             platform-swt-dev-         [platform-swt-dev] desperate :

             admin@xxxxxxxxxxx         NoClassDefFoundError on Composite

 

 

             10/29/2004 04:35

             AM

 

 

             Please respond to

             platform-swt-dev

 

 





I have eventually convinced my bosses that Java is the way to go, got a
nice project, wrote it using SWT and everything's fine.... untill now:

I need to make the app "stand allone", in other words, not run from the
Eclipse IDE.  So my classes are all in the default package (root) except
for one or two utillity classes.  All my jars, including swt.jar, is in
lib and all the required dll's also lies in the root of the project.

So, I jar'd the root of the project and now I'm trying to run the app
from it.  So remember all the classes, jar's and dll's are contained
whithin the new jar.

I get the following error when trying to run the app from the jar...

Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/swt/widgets/Composite
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown 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)


My main class extends org.eclipse.swt.widgets.Composite and I made the
jar runnable (manifest entry).

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top