Standalone SWT cheat sheet - puzzled [message #461483] |
Mon, 26 September 2005 11:32 |
Eclipse User |
|
|
|
Originally posted by: cix.ptoye.com
I'm trying to write a standalone SWT program following the cheat sheet. It
works fine when I do a Run As... from within Eclipse, but when I try to
run it from a command line (which is what I understand by "standalone" it
comes up with
>java HelloWorld
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/swt/widgets/Display at HelloWorld.main(HelloWorld.java:10)
Do I have to set the CLASSPATH variable - this isn't mentioned in the
cheatsheet? I've tried various settings but none of them works.
I posted this in the "Newcomers" section but there hasn't been a reply, so
thought I'd try here.
Peter
|
|
|
Re: Standalone SWT cheat sheet - puzzled [message #461703 is a reply to message #461483] |
Tue, 27 September 2005 15:18 |
Eclipse User |
|
|
|
Originally posted by: eclipse.ptoye.com
In article <memo.20050926123235.3076A@ptoye-ptoye.cix.co.uk>,
cix@ptoye.com (Peter Toye) wrote:
> *From:* cix@ptoye.com (Peter Toye)
> *Date:* Mon, 26 Sep 2005 12:32 +0100 (BST)
>
> I'm trying to write a standalone SWT program following the cheat sheet.
> It works fine when I do a Run As... from within Eclipse, but when I try
> to run it from a command line (which is what I understand by
> "standalone" it comes up with
>
> >java HelloWorld
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/eclipse/swt/widgets/Display at HelloWorld.main(HelloWorld.java:10)
>
> Do I have to set the CLASSPATH variable - this isn't mentioned in the
> cheatsheet? I've tried various settings but none of them works.
>
> I posted this in the "Newcomers" section but there hasn't been a reply,
> so thought I'd try here.
>
>
> Peter
>
Well, in the end I managed to find the answer myself - in the "download
SWT" section of the Eclipse site (not the most obvious place, I'd say).
Peter
|
|
|
Powered by
FUDForum. Page generated in 0.02895 seconds