Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Java app run from sh with SWT: (2 Items)
   
Java app run from sh with SWT  
I Am trying to run and compile a java app using SWT, from the shell, instead of momentics.

I am using the vm from eclipse with the Sun's lib files, where i have put SWT.jar into the same lib path. However when I
 run my app where it just instantiates a Shell, I get the error: 
noClassDefFoundError: org/eclipse/swt/widgets/Shell 
But when I just import the class but not instantiate a Shell, I dont get the error.
I have looked through swt.jar and it appears to exist in the file. How do I make the VM recognize the class? Or do I 
have a bigger problem?
Re: Java app run from sh with SWT  
It has to be in classpath. There are several jars required. See my previous post with full command line of how to run it
. It works for me.

John Lawniczak wrote:
> I Am trying to run and compile a java app using SWT, from the shell, instead of momentics.
> 
> I am using the vm from eclipse with the Sun's lib files, where i have put SWT.jar into the same lib path. However when
 I run my app where it just instantiates a Shell, I get the error: 
> noClassDefFoundError: org/eclipse/swt/widgets/Shell 
> But when I just import the class but not instantiate a Shell, I dont get the error.
> I have looked through swt.jar and it appears to exist in the file. How do I make the VM recognize the class? Or do I 
have a bigger problem?
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post21332
>