TrayDemo Written by Eric M. Burke (http://www.ericburke.com) License: none. Use however you like. This program shows how to use version 0.9 of JDIC to put an alert in the native system "tray". It simulates a weather reporting service. Version 0.9 of JDIC should support Windows, Solaris, and Linux. Sun has not finished Mac support, but they should by the time version 1.0 is available. To Compile: - download version 0.9 of JDIC (https://jdic.dev.java.net/) (This was tested against the "cross platform" download version) - make sure Java 5 and Ant 1.6.2 are installed - edit build.xml to point to your installation of JDIC: - type "ant" To Run: - type "ant run" To Run outside of Ant: - include jdic.jar and traydemo.jar in your CLASSPATH - set the java.library.path system property to the JDIC install directory - the main() method is in the com.ociweb.traydemo.WeatherTray class java -classpath [JARs] -Djava.library.path=[JDIC_DIR] com.ociweb.traydemo.WeatherTray :: Here is a Sample Windows batch file: @echo off setlocal set JDIC=C:\java\jdic-0.9-bin-cross-platform set CLASSPATH=%JDIC%\jdic.jar;build\traydemo.jar java -Djava.library.path=%JDIC% com.ociweb.traydemo.WeatherTray endlocal