If you have a look in the demo source code, you will see that the
JDIC demo is
using package
import org.jdesktop.jdic.tray.*;
but in Java 6 the SystemTray is in the java.awt package, so of course
this will fail.
In fact it doesn't matter which JVM you are using (except the class
file format) in
any case it will fail if the JDIC classes or their native parts are
not available.
Am 03.07.2007 um 15:13 schrieb Mark Leone:
Here's a case in point about being mystified on OSX. I ran the
WebSTart demo for TrayIcon on OSX 10.4, where I have JRE 1.4,
J2SE5, and J2SE6 installed. The demo fails to launch, and in the
error details window I see the JNLP file that you pointed out has
no OSX resource element. But there's also an Exception tab in that
Window. So I checked that, and it's a NoClassDefFound exception for
class SystemTray. So it appears WebStart is running with J2SE5
(since that's the version I see if I type java -version in a
Terminal window). But then I launched the Java Preferences.app that
came with J2SE6, and selected J2SE6 as the first Java version to
try for WebStart and desktop apps. But this seems to have no
effect, as I still get the Exception looking for class SystemTray
when I launch a WebStart app.
So is Java Preferences.app only supposed to work if I already have
J2SE6 as my default Java version? Or does it just not work? How do
I tell OSX what my default Java version should be?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden