Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to bind the missing swt?
How to bind the missing swt? [message #456995] Tue, 14 June 2005 08:14 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:pocket pc file viewer
Next Topic:SWT ToolItem armed by default
Goto Forum:
  


Current Time: Fri Mar 29 08:57:19 GMT 2024

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

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

Back to the top