Want panel button for stand alone java program
I am on Kubuntu 8.04. I have downloaded (unixmacrosx.jar) and installed (jar xf unixmacrosx.jar) a stand alone java program. I can run it with terminal command
java -cp jts.jar:pluginsupport.jar:riskfeed.jar:hsqldb.jar:jcommon-1.0.12.jar:jfreechart-1.0.9.jar:jhall.jar:other.jar:rss.jar -Xmx256M jclient.Login but would like to have a button on toolbar panel to click to launch it. How can I achieve this? Thanks. |
It should be fairly easy. Just add a program button shortcut to the toolbar (using the "non-kde application launcher" applet) and put the startup line in the "executable" field. If the command runs in a terminal, then in most cases it will also run when the shortcut is clicked.
Edit: apparently the non-kde applet works a bit differently from the regular kde launcher. It looks like add only the "java" command to the "executable" field, and put the rest of the command arguments in the next field below it. BTW, if for whatever reason a command won't work from the shortcut, but does run from the console, you can also check the "run in terminal" box so that it opens up a console first, then runs the command in it. |
Many thanks. Will try that.
|
Problem. When I click on Add Applet to Panel I do not see "non-kde application launcher" anywhere. What is happening?
|
Must be blind. Found non-kde application launcher by scrolling down. Put java command in as executable and got panel button. However when it is clicked nothing happens. Is this possibly because in terminal I needed to cd to a directory before executing jave command. If so how do I set up a cd to appropriate directory in setting up appln launcher?
|
All times are GMT -5. The time now is 10:51 AM. |