Mercurial > repo
view bin/js @ 10880:a2e82a8e7f4f
<wob_jonas> slashlearn b_jonas can\'t spell//b_jonas can\'t spell these words: weird, hygiene, etymology, myopia, hibernate, carbohydrate, appearance, maintenance, appropriate, privilege, obsolete, heard, homogeneous, jealous; and confuses these sets of words: drought, draught/draft; couch, coach; depreciate, deprecate; dilate, dilute; contiguous, continuous; d
author | HackBot |
---|---|
date | Wed, 10 May 2017 23:48:17 +0000 |
parents | 7bf20fcbbe08 |
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 -classpath $JAVA_CLASSPATH $JAVA_MAIN -e "$*"