Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

sweethome3d

By: a guest on Jan 6th, 2013  |  syntax: Bash  |  size: 0.88 KB  |  hits: 41  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/sh
  2. if [ -d /usr/lib/jvm/java-7-openjdk/jre ] ; then
  3.         if [ -f /usr/share/icedtea-web/netx.jar ] ; then
  4.                 JAVAWS=/usr/share/icedtea-web/netx.jar
  5.         else
  6.                 echo "Err: icedtea-web-java7 should install"
  7.                 exit 1
  8.         fi
  9. elif [ -d /opt/sun-java6 ] ; then
  10.         . /opt/sun-java6/envsetup.sh
  11.         JAVAWS="$JAVA_HOME"/jre/lib/javaws.jar
  12.         if [ ! -r $JAVAWS ] ; then
  13.                 echo "Err: missing JAVAWS ($JAVAWS)"
  14.                 exit 1
  15.         fi
  16. elif [ -d /opt/java ] ; then
  17.         JAVAWS="$JAVA_HOME"/jre/lib/javaws.jar
  18.         if [ ! -r $JAVAWS ] ; then
  19.                 echo "Err: missing JAVAWS ($JAVAWS)"
  20.                 exit 1
  21.         fi
  22. else
  23.         echo "Err: Please install openjdk or jre+jdk>=7.7 or sun-java6"
  24.         exit 1
  25. fi
  26.  
  27. $JAVA_HOME/bin/java -Xmx256m -jar /usr/share/java/sweethome3d.jar