Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Linux Support (https://www.gnutellaforums.com/general-linux-support/)
-   -   starting Java Programs (https://www.gnutellaforums.com/general-linux-support/11104-starting-java-programs.html)

shorebreak May 6th, 2002 06:27 AM

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

jmcclure May 8th, 2002 12:47 AM

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

shorebreak May 9th, 2002 01:11 PM

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 09:54 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.