Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatic access to the notification area (aka the System Tray)



Mark Leone wrote:

>Using JRE version 1.6.0_01 Java HotSpot(TM) Client VM
>User home directory = C:\Documents and Settings\Mark
>...
>at java.io.WinNTFileSystem.canonicalize0(Native Method)
>at java.io.Win32FileSystem.canonicalize(Unknown Source)
>at java.io.File.getCanonicalPath(Unknown Source)

It appears that you're running on Windows, not Mac OS X,
under JRE 1.6 (Java 6 SE), not Java 5.


>BTW, I'm using the demo found here:
>http://javadesktop.org/jdic/demo/TrayIcon/trayicon.jnlp

That JNLP file has no resources for Mac OS.  Its entire contents:

<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for JDIC Demo Application (TrayIcon) -->
<jnlp spec="1.0+"
    codebase="http://javadesktop.org/jdic/demo/TrayIcon";
    href="trayicon.jnlp">
    <information>
        <title>JDIC Demo - TrayIcon</title>
        <vendor>https://jdic.dev.java.net</vendor>
        <description>JDIC Demo Application - TrayIcon</description>
        <description kind="short">JDIC Demo Application -
TrayIcon</description>
        <offline-allowed/>
    </information>
    <security>
        <all-permissions/>
    </security>
    <resources>
        <j2se      version="1.4+"/>
        <jar       href="trayicon.jar"/>
    </resources>
    <resources os="Windows">
        <jar       href="windows/jdic.jar"/>
        <nativelib href="windows/jdic-native.jar"/>
    </resources>
    <resources os="SunOS" arch="sparc">
        <jar       href="solaris_sparc/jdic.jar"/>
        <nativelib href="solaris_sparc/jdic-native.jar"/>
    </resources>
    <resources os="Linux">
        <jar       href="linux/jdic.jar"/>
        <nativelib href="linux/jdic-native.jar"/>
    </resources>
    <application-desc main-class="Tray"/>
</jnlp>

I'm not saying it's impossible that it would work on Mac OS X.  It just
seems unlikely to me.

  -- GG


 _______________________________________________
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

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.