summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Carlson <absinthe@gentoo.org>2004-02-29 01:14:26 +0000
committerDylan Carlson <absinthe@gentoo.org>2004-02-29 01:14:26 +0000
commit47c1d7ce5444ba98f1e93d66dbb4350431a1f458 (patch)
treeea5c9e33e4bff50963350dadfae9238b4d66613e /dev-java/jswat/files/2.21
parentversion bump. workaround missing .so extensions with libtool version (#42955)... (diff)
downloadgentoo-2-47c1d7ce5444ba98f1e93d66dbb4350431a1f458.tar.gz
gentoo-2-47c1d7ce5444ba98f1e93d66dbb4350431a1f458.tar.bz2
gentoo-2-47c1d7ce5444ba98f1e93d66dbb4350431a1f458.zip
Fix to close bug #43222.
Diffstat (limited to 'dev-java/jswat/files/2.21')
-rw-r--r--dev-java/jswat/files/2.21/jswat243
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-java/jswat/files/2.21/jswat2 b/dev-java/jswat/files/2.21/jswat2
new file mode 100644
index 000000000000..6b877058cf3e
--- /dev/null
+++ b/dev-java/jswat/files/2.21/jswat2
@@ -0,0 +1,43 @@
+#!/bin/sh
+# jswat Launch Script
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jswat/files/2.21/jswat2,v 1.1 2004/02/29 01:14:26 absinthe Exp $
+
+JSWAT_VER="2.21"
+
+JAVA_HOME=`/usr/bin/java-config --jdk-home`
+if [ -z "${JAVA_HOME}" ] ; then
+ JAVA_HOME=`/usr/bin/java-config --jre-home`
+fi
+CLASSPATH="${JAVA_HOME}/lib/tools.jar:`/usr/bin/java-config --classpath=jswat-${JSWAT_VER}`:${CLASSPATH}"
+
+if [ ! -f ${JAVA_HOME}/bin/java ] ; then
+ echo " "
+ echo "I tried using the following Java Runtime:"
+ echo "${JAVA_HOME}/bin/java"
+ echo " "
+ echo "Java Runtime missing. Please run java-config(1) and ensure"
+ echo "your environment is configured properly."
+ exit 1
+else
+ echo " "
+ echo "Using Java Runtime:"
+ echo "${JAVA_HOME}/bin/java"
+ echo " "
+ echo "Using CLASSPATH:"
+ echo "${CLASSPATH}"
+ echo " "
+fi
+
+# Make sure we're using 1.4 JDK
+
+if [ -z `echo ${JAVA_HOME} | grep "1.4"` ] ; then
+ echo "!!! JDK 1.4 is required for this version of "
+ echo "!!! jswat (${JSWAT_VER}). "
+ echo "!!! "
+ echo "!!! Please run java-config(1) and configure "
+ echo "!!! your system to use a 1.4 or later JDK. "
+ echo " "
+ exit 1
+fi
+
+${JAVA_HOME}/bin/java com.bluemarsh.jswat.Main $@