home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 November
/
PCWorld_2005-11_cd.bin
/
software
/
temacd
/
ppsee
/
PPSeeSetup.exe
/
ppsee.sh
< prev
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
2005-09-25
|
2KB
|
50 lines
#!/bin/sh
# ===================================================================
# runJ4Lin.sh version 0.91 - general starting script for Linux or Unix.
#
# Copyright (C) 1993 Pavel Ponec, e-mail:ppsee@centrum.cz
# Home Page: http://pponec.net/ppsee/runj4/index.htm
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation version 2 of the License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY.
# Please read bin/license-gpl.txt for the full details. A copy of the GPL may
# be found at http://www.gnu.org/licenses/gpl.txt .
#
# A History:
# rel. 0.92 - 2003/11/30 - The first public version
#
# Usage: sh ppsee.sh
# ===================================================================
# Modify path to file "java" in case you can't run the application.
java="/usr/lib/jre-1.4.2_05/bin/java"
# You can write a path to your favorite HTML viewer
html=""
# Maximal Memory Alocation:
parameter="-Xmx128m -DhtmlView=\"$HtmlView\""
# A Java Archive:
jarName="bin/PPSee.jar"
# === CORE: ===
javax="$java"
if [ ! -f "${javax}" ]; then
javax=${JAVA_HOME}/bin/java
if [ ! -f "$javax" ]; then
echo "ERROR in \"ppsee.sh\" script:"
echo "File \"$java\" was not found."
echo "Ensure you have installed a Java environment"
echo "or try to modify a \"java\" variable in the current script."
echo "See \"read-me.html\" file for more information."
exit 1
fi
fi
path=`echo "$0" | sed "s/[^/]*$//"`
"$javax" $parameter -jar "$path$jarName" $@
# === EOF ===