[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] SWT and GdkEvent

Hello together,

I am just getting into SWT development but fail w/ simple "Hello World"
I am using Debian GNU/Linux w/ GNOME2. I have the right shared objects
in the current path as well as in the normal lib folders of my system.
The according jars are in the CLASSPATH (according to a simple query
against System.getProperty("java.class.path");). The problem is that
Java's URLClassLoader is throwing a NoClassDefFound exception; it cannot
find the GdkEvent class. The question is that I cannot find this class
myself within the jars (using up to date downloads).
I have tested it w/ debugger and the error is thrown on the very
beginning. Here my error msg:

Exception in thread "main" java.lang.NoClassDefFoundError:
	at net.neveprise.deskApps.TenFourtyFive.MainForm.main(MainForm.java:22)

This is the source not working:

 * Created on Aug 27, 2003
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
package net.neveprise.deskApps.TenFourtyFive;

//import org.eclipse.jface.window.*;
//import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;

 * @author blazko
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
public class MainForm {
	public static void main(String[] args) {
		System.err.println("CLASSPATH: " +
		MessageBox m = new MessageBox(new Shell());
		  m.setMessage("Hello, World");
		//ApplicationWindow mainWindow = new ApplicationWindow(null);



I really cannot find even any relevant info when googling.
Thank you for any hints!

greetings,                   |  /"\ 
                             |  \ /  ASCII-Ribbon-Campaign
Timo                         |   X     Against HTML Mail
                             |  / \ 
D8279D57     Timo Boewing  <blazko@xxxxxxxxx> 2002/09/25
Fingerprint = DB88 686D 44D8 6F1B 5B1A D24F 037E F898 D827 9D57