How to bind the missing swt? [message #456995] |
Tue, 14 June 2005 08:14 |
Eclipse User |
|
|
|
Originally posted by: divinerchan.gmail.com
Hi all,
I tried the example "ControlExample" with Eclipse and work
well in Eclipse environment.
Now I want to launch it from command line:
C:\Eclipse_Workspace\3.1RC1\org.eclipse.swt.examples\bin>java
-Djava.library.path = C:\eclipse-SDK-3.1RC1-win32\eclipse\
plugins\swt-3.1RC1-win32-win32-x86
org.eclipse.swt.examples.controlexample.ControlExample <enter>
I got an error:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/swt/widgets/Layout
So I follow the document to pack the project files into
ControlExample.jar, and launch it again:
C:\temp>java -Djava.library.path = C:\eclipse-SDK-3.1RC1-win32\
eclipse\plugins\swt-3.1RC1-win32-win32-x86
-jar ControlExample.jar <enter>
And I got the same error.
So how can I bind the swt widgets there to make it works?
Thank you very much.
--
Best regards,
Diviner.
|
|
|
Re: How to bind the missing swt? [message #457025 is a reply to message #456995] |
Wed, 15 June 2005 06:40 |
Eclipse User |
|
|
|
Originally posted by: divinerchan.gmail.com
Diviner,
Problem solved. I am missing -cp to point to "." and "swt.jar"
file.
--
Best regards,
Diviner.
> Hi all,
>
> I tried the example "ControlExample" with Eclipse and work
> well in Eclipse environment.
>
> Now I want to launch it from command line:
> C:\Eclipse_Workspace\3.1RC1\org.eclipse.swt.examples\bin>java
> -Djava.library.path = C:\eclipse-SDK-3.1RC1-win32\eclipse\
> plugins\swt-3.1RC1-win32-win32-x86
> org.eclipse.swt.examples.controlexample.ControlExample <enter>
> I got an error:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/eclipse/swt/widgets/Layout
>
> So I follow the document to pack the project files into
> ControlExample.jar, and launch it again:
> C:\temp>java -Djava.library.path = C:\eclipse-SDK-3.1RC1-win32\
> eclipse\plugins\swt-3.1RC1-win32-win32-x86
> -jar ControlExample.jar <enter>
> And I got the same error.
>
> So how can I bind the swt widgets there to make it works?
>
> Thank you very much.
>
> --
> Best regards,
> Diviner.
|
|
|
Powered by
FUDForum. Page generated in 0.03053 seconds