That's interesting, as I am not even able to get the WebStart
TrayIcon demo to run. But I'm running it with Java 1.5 on Mac OS X
10.4.10.
Note that the WebStart demo hasn't really been properly debugged on
the Mac so it's probably a bit flakey for certain things. I've
always got a reflection invocation error when I try to run it from
WebStart.
But, the code for Mac TrayIcon should work fine if you download it
and run it from your desktop. Also, maybe someone tweaked the
WebStart demo to work (mostly) on Mac with Java 6 and that is why you
are able to run it and I am not.
Rob Ross, Lead Software Engineer
E! Networks
---------------------------------------------------
"Beware of he who would deny you access to information, for in his
heart he dreams himself your master." -- Commissioner Pravin Lal
On Jul 1, 2007, at 12:03 PM, Mark Leone wrote:
Rob Ross wrote:
What exception does the TrayIcon demo throw?
I get the following stack trace in the Java console as soon as I
click "Run" in the Java Webstart dialog. However, after posting my
previous message I noticed that the tray icon shows up, despite the
exception in the Java Console, and seems to run normally. When I
select any of the items in the tray icon menu, I see a log message
in the Java console that teh event fired. Here's Java Console error
dump.
Java Web Start 1.6.0_01
Using JRE version 1.6.0_01 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Mark
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
org.jdesktop.jdic.init.JdicInitException: java.io.IOException: The
filename, directory name, or volume label syntax is incorrect
at org.jdesktop.jdic.init.JdicManager.initShareNative(Unknown
Source)
at org.jdesktop.jdic.tray.internal.ServiceManager.<clinit>
(Unknown Source)
at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)
at Tray.<init>(Unknown Source)
at Tray.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: The filename, directory name, or
volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Unknown Source)
at java.io.File.getCanonicalPath(Unknown Source)
... 14 more
_______________________________________________
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