[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] SWT and GdkEvent
|
My guess:
SWT/GTK is divided, for legal reasons, in two jar files (swt.jar and
swt-pi.jar). I think what is happening to you is that you have only one of
this files (swt.jar) in your classpath and the other file (swt-pi.jar) is
missing. Try to add swt-pi.jar to your classpath and test again.
In newer versions of SWT you will also find swt-mozilla.jar that is
required if you want to use the new Browser class.
Good luck and for future user-question use the newsgroup instead.
Felipe
Timo -Blazko- Boewing <lists-inbox@xxxxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
09/05/2003 05:32 PM
Please respond to platform-swt-dev
To: SWT-Devel <platform-swt-dev@xxxxxxxxxxx>
cc:
Subject: [platform-swt-dev] SWT and GdkEvent
Hello together,
I am just getting into SWT development but fail w/ simple "Hello World"
apps.
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:
org/eclipse/swt/internal/gtk/GdkEvent
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: " +
System.getProperty("java.class.path"));
MessageBox m = new MessageBox(new
Shell());
m.setMessage("Hello, World");
m.open();
//ApplicationWindow mainWindow = new
ApplicationWindow(null);
//mainWindow.setBlockOnOpen(true);
//mainWindow.open();
//Display.getCurrent().dispose();
}
}
<<<
I really cannot find even any relevant info when googling.
Thank you for any hints!
--
greetings, | /"\
| \ / ASCII-Ribbon-Campaign
Timo | X Against HTML Mail
| / \
----------------------------------------------------------------------
PUBLIC KEY:
D8279D57 Timo Boewing <blazko@xxxxxxxxx> 2002/09/25
Fingerprint = DB88 686D 44D8 6F1B 5B1A D24F 037E F898 D827 9D57
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev