![]() |
starting Java Programs is there a way under linux to start java programs without a shell script but with a desktop-link? or at least so that i don't need a consol open all the time? thank you SuSE 8 Professional KDE 3; Java 1.3.1 |
I've made some minor tweaks to the runLime.sh script, so that it can be run from a menu or desktop icon. The changes are: 1) Addition of . /usr/local/bin/jdk1.4.env. This sets up my java environment like PATH and such. 2) Addition of cd `dirname $0`. This changes to the directory that the script is located in. 3) Comment out the J2SE_PREEMPTCLOSE lines. I don't seem to need this with JDK1.4. Also, when you create your launch icon you may need to check the "Run in terminal" option or similar. Under Gnome that's what it's called, I don't know what it's called under KDE. I used to have to use this with Redhat 7.2 and Ximian Gnome, but it works fine with out it under Redhat 7.3. Let me know how it works out! Here's my modified script: #!/bin/sh # # Runs LimeWire. This script must be executed in your LimeWire # install directory. # # We must set the J2SE_PREEMPTCLOSE environment variable to 1 to # work around some limitations in the JDK1.3. For more information # see http://java.sun.com/j2se/1.3/relnotes.html#vm # CLASSPATH=".:collections.jar:xerces.jar:jl011.jar" export CLASSPATH . /usr/local/bin/jdk1.4.env cd `dirname $0` #J2SE_PREEMPTCLOSE=1 #export J2SE_PREEMPTCLOSE java -jar RunLime.jar |
doesn't work for me :( i'm new to linux so it might be my fault. the problem is in the shell script the desktop link works. i just copied the shell script to my desktop and added a line to switch the folder and for 2 out of 3 java programs i have it works. thanks! |
All times are GMT -7. The time now is 11:05 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2020 Gnutella Forums.
All Rights Reserved.