Mercurial > repo
view bin/js @ 3028:773ae9c82f6a
<shachaf> addquote <mnoqy> the theory\'s probably not \x02bad\x0f, but calculus is one of those things that\'s so dang applicable that everyone only ever talks about how to apply it and compute with it and uuuuurgh(barf) <mnoqy> so i stay away from it
author | HackBot |
---|---|
date | Sun, 02 Jun 2013 04:43:34 +0000 |
parents | f77f3fbeefe1 |
children |
line wrap: on
line source
#!/bin/sh JAVA_CMD="/usr/bin/java" JAVA_OPTS="" JAVA_CLASSPATH="/usr/share/java/js.jar:/usr/share/java/jline.jar" JAVA_MAIN="org.mozilla.javascript.tools.shell.Main" ## Fix for #512498 ## Change Bootclasspath when using OpenJDK because OpenJDK6 ## bundle his own release of Rhino. ## References: ## <https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/255149> ## <http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=179> ## <http://www.openoffice.org/issues/show_bug.cgi?id=91641> isOpenJDK=`$JAVA_CMD -version 2>&1 | grep -i "OpenJDK" | wc -l` if [ $isOpenJDK -gt 0 ] then JAVA_OPTS="-Xbootclasspath:/usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar" fi $JAVA_CMD $JAVA_OPTS -classpath $JAVA_CLASSPATH $JAVA_MAIN -e "$@"