Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Standalone SWT cheat sheet - puzzled
Standalone SWT cheat sheet - puzzled [message #461483] Mon, 26 September 2005 11:32 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Is possible st. like: "Composite remove(Componet)" ?
Next Topic:JarFile
Goto Forum:
  


Current Time: Thu Apr 25 18:49:57 GMT 2024

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

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

Back to the top