home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 September / Chip_2004-09_cd1.bin / software / pp / setup.exe / ppsee.sh next >
Linux/UNIX/POSIX Shell Script  |  2004-03-25  |  2KB  |  48 lines

  1. #!/bin/sh
  2. # ===================================================================
  3. # runJ4Lin.sh version 0.91 - general starting script for Linux or Unix.
  4. # Copyright (C) 1993 Pavel Ponec, e-mail:ppsee@centrum.cz
  5. # Home Page: http://ppsee.wz.cz/runj4/index.htm
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation version 2 of the License.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY.
  11. # Please read bin/license-gpl.txt for the full details. A copy of the GPL may 
  12. # be found at http://www.gnu.org/licenses/gpl.txt .
  13. #
  14. # A History:
  15. # rel. 0.92 - 2003/11/30 - The first public version
  16. #
  17. # Usage: sh ppsee.sh
  18. # ===================================================================
  19.  
  20. # Modify path to file "java" in case you can't run the application.
  21. java="/usr/lib/jre-1.4.2_01/bin/java"
  22.  
  23. # You can write a path to your favorite HTML viewer
  24. html=""
  25.  
  26. # Maximal Memory Alocation:
  27. parameter="-Xmx128m -DhtmlView=\"$HtmlView\"" 
  28.  
  29. # A Java Archive:
  30. jarName="bin/PPSee.jar"
  31.  
  32. # === CORE: ===
  33. javax="$java"
  34. if [ ! -f "${javax}" ]; then
  35.   javax=${JAVA_HOME}/bin/java  
  36.   if [ ! -f "$javax" ]; then
  37.     echo "ERROR in runJ4Lin script:"
  38.     echo "File \"$java\" was not found."
  39.     echo "Try to modify a \"java\" variable in the current script."
  40.     exit 1
  41.   fi
  42. fi
  43. path=`echo "$0" | sed "s/[^/]*$//"`
  44. "$javax" $parameter -jar "$path$jarName" $@
  45. # === EOF ===
  46.