Mercurial > repo
view bin/js @ 9816:a7fb80deb639
<shachaf> revert
author | HackBot |
---|---|
date | Fri, 02 Dec 2016 03:03:44 +0000 |
parents | 56dcce63901b |
children | 7bf20fcbbe08 |
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 -classpath $JAVA_CLASSPATH $JAVA_MAIN -e "$@"