Skip to main content

A question about the trayicon class

2 replies [Last post]
table686
Offline
Joined: 2005-09-06

hi.first,i want to say thank u for doing so much work.
but i have a question,can u help me?
With JbuilderX,I am writing an application which needs to put an icon on the system tray.I downloaded your 0.88 version,and it worked very well in the jbuilder ide.
I have add your jar files to the classpath,that means there is sentence like import"org.jdesktop.jdic.tray "in my source file(according to your instuctions,the dll and exe files stay at the same location as your jar files).Now,i can compile the application and run it,and it runs well.everything is ok and the application runs perfectly.But now I want to do the last thing--bundling my applications JAR into a native executable file with the archive builder of jbuilder.
I did this,but the native file didn't work(I have installed jre).In order to find out the reason,I unzipped
the JAR file that was built by jbuilder.There is only my classes and the icon in it.So i added your classes , the dll,exe files to the Jar,and Added the path of native library files .dll and the path of native executable files .exe to PATH.but after the exe file was made,it still worked correctly.
Can u help me?Sorry, my English is bad.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
John Ellis

You don't want to add the classes to your JAR, but instead create a
classpath dependency with your own archive file.

For example, the manifest file for your JAR should have something like:
Class-Path: jdic.jar

So ultimately you'd have two JAR's: one which is your application, the
other which is the JDIC library.

On Fri, 25 Feb 2005 13:11:42 EST, jdic@javadesktop.org
wrote:
> hi.first,i want to say thank u for doing so much work.
> but i have a question,can u help me?
> With JbuilderX,I am writing an application which needs to put an icon on the system tray.I downloaded your 0.88 version,and it worked very well in the jbuilder ide.
> I have add your jar files to the classpath,that means there is sentence like import"org.jdesktop.jdic.tray "in my source file(according to your instuctions,the dll and exe files stay at the same location as your jar files).Now,i can compile the application and run it,and it runs well.everything is ok and the application runs perfectly.But now I want to do the last thing--bundling my applications JAR into a native executable file with the archive builder of jbuilder.
> I did this,but the native file didn't work(I have installed jre).In order to find out the reason,I unzipped
> the JAR file that was built by jbuilder.There is only my classes and the icon in it.So i added your classes , the dll,exe files to the Jar,and Added the path of native library files .dll and the path of native executable files .exe to PATH.but after the exe file was made,it still worked correctly.
> Can u help me?Sorry, my English is bad.
> ---
> [Message sent by forum member 'table686' (table686)]
>
> http://www.javadesktop.org/forums/thread.jspa?messageID=59811
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jdic-unsubscribe@jdic.dev.java.net
> For additional commands, e-mail: jdic-help@jdic.dev.java.net
>
>

--
John Ellis
john.ellis@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jdic-unsubscribe@jdic.dev.java.net
For additional commands, e-mail: jdic-help@jdic.dev.java.net

table686
Offline
Joined: 2005-09-06

Thank you very much,John.
Sorry,when u was replying to my question,I was not on line,because i am in China.
thanks.thanks.thanks!