View Single Post
  #2 (permalink)  
Old May 8th, 2002
jmcclure jmcclure is offline
Apprentice
 
Join Date: December 9th, 2001
Location: Pasadena, CA
Posts: 6
jmcclure is flying high
Default

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
Reply With Quote