Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] RE: platform-swt-dev digest, Vol 1 #936 - 1 msg

I think the swt dll is not in your path.


From: platform-swt-dev-request@xxxxxxxxxxx
Reply-To: platform-swt-dev@xxxxxxxxxxx
To: platform-swt-dev@xxxxxxxxxxx
Subject: platform-swt-dev digest, Vol 1 #936 - 1 msg
Date: Tue, 06 Jul 2004 12:00:04 -0400

Send platform-swt-dev mailing list submissions to
	platform-swt-dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
	http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
or, via email, send a message with subject or body 'help' to
	platform-swt-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
	platform-swt-dev-admin@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of platform-swt-dev digest..."


Today's Topics:

1. RE: java.lang.NoClassDefFoundError when running a standalone (Hubert Lingo)

--__--__--

Message: 1
From: "Hubert Lingo" <hubertlingo@xxxxxxxxxxx>
To: platform-swt-dev@xxxxxxxxxxx
Subject: RE: [platform-swt-dev] java.lang.NoClassDefFoundError when running a standalone
Date: Tue, 06 Jul 2004 13:19:12 +0000
Reply-To: platform-swt-dev@xxxxxxxxxxx

Aaah those guys who are using windows... Terrific !


>From: "Ryoji Kawaguchi" <ryojik@xxxxxxx>
>Reply-To: platform-swt-dev@xxxxxxxxxxx
>To: <platform-swt-dev@xxxxxxxxxxx>
>Subject: [platform-swt-dev] java.lang.NoClassDefFoundError when running a
>standalone SWT application
>Date: Sat, 3 Jul 2004 10:42:28 +0900
>
>Hi all,
>
>Anyone can help me in trouble of facing "java.lang.NoClassDefFoundError"
>when trying to excuse a standalone SWT application complied on the
>environment of SWT ver 2.13 and j2sdk1.4.2_04, taking following steps,
>
>1) dir
>
>  C:\j2sdk1.4.2_04\work
>2004/07/03  09:52       <DIR>          .
>2004/07/03  09:52       <DIR>          ..
>2004/03/11  04:17              278,528 swt-win32-2136.dll
>2004/03/11  04:17            1,019,114 swt.jar
>2004/06/29  21:52                  455 WindowSample1.BAK
>2004/07/03  09:52                  699 WindowSample1.class
>2004/07/03  09:50                  431 WindowSample1.java
>
>
>
>2) Compiling from DOS command prompt of Windows 2000
>
>C:\j2sdk1.4.2_04\work>javac -classpath swt.jar WindowSample1.java
>
>
>
>3) Executing from DOS command
>
>C:\j2sdk1.4.2_04\work>java -classpath swt.jar WindowSample1
>Exception in thread "main" java.lang.NoClassDefFoundError: WindowSample1
>
>C:\j2sdk1.4.2_04\work>java WindowSample1
>Exception in thread "main" java.lang.NoClassDefFoundError:
>org/eclipse/swt/widge
>ts/Display
>         at WindowSample1.main(WindowSample1.java:6)
>
>
>4) Source code of a sample program using swt
>
>---------------------------------------------------------
>import org.eclipse.swt.widgets.*;
>
>public class WindowSample1 {
>   public static void main (String [] args) {
>     Display display = new Display ();
>     Shell shell = new Shell(display);
>     shell.setText("Window Sample1");
>     shell.setSize(200,100);
>     shell.open();
>     while (!shell.isDisposed ()){
>       if (!display.readAndDispatch ()){
>         display.sleep ();
>       }
>     }
>     display.dispose ();
>   }
>}
>------------------------------------------------------------
>
>_______________________________________________
>platform-swt-dev mailing list
>platform-swt-dev@xxxxxxxxxxx
>http://dev.eclipse.org/mailman/listinfo/platform-swt-dev

_________________________________________________________________
MSN Messenger : discutez en direct avec vos amis !
http://www.msn.fr/msger/default.asp



--__--__--

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev


End of platform-swt-dev Digest

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



Back to the top