openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #00564
[Bug 255149] [NEW] OpenJDK doesn't respect classpath or overriding jar files
Public bug reported:
I'm trying to run a custom rhino to build Dojo, but OpenJDK keeps
ignoring the rhino in the jar file I provide and keeps loading rhino
from the system libs:
$ java -verbose:class -jar ../shrinksafe/custom_rhino.jar
...
[Opened /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
[Loaded org.mozilla.javascript.tools.shell.Main from /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
[Loaded org.mozilla.javascript.ContextFactory from /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
[Loaded org.mozilla.javascript.tools.shell.ShellContextFactory from /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
...
If I specify a classpath, it still loads from the system rhino library:
$ java -classpath ../shrinksafe/ -verbose:class -jar ../shrinksafe/custom_rhino.jar
...
[Opened /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
[Loaded org.mozilla.javascript.tools.shell.Main from /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
[Loaded org.mozilla.javascript.ContextFactory from /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
[Loaded org.mozilla.javascript.tools.shell.ShellContextFactory from /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
...
If I change over to using sun's JRE, it works fine:
$ sudo update-java-alternatives --set java-6-sun
$ java -verbose:class -jar ../shrinksafe/custom_rhino.jar
...
[Loaded org.mozilla.javascript.tools.shell.Main from file:/home/bryan/bzr/dojo/util/shrinksafe/custom_rhino.jar]
[Loaded org.mozilla.javascript.RhinoException from file:/home/bryan/bzr/dojo/util/shrinksafe/custom_rhino.jar]
[Loaded org.mozilla.javascript.EvaluatorException from file:/home/bryan/bzr/dojo/util/shrinksafe/custom_rhino.jar]
...
** Affects: openjdk-6 (Ubuntu)
Importance: Undecided
Status: New
--
OpenJDK doesn't respect classpath or overriding jar files
https://bugs.launchpad.net/bugs/255149
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.
Status in “openjdk-6” source package in Ubuntu: New
Bug description:
I'm trying to run a custom rhino to build Dojo, but OpenJDK keeps ignoring the rhino in the jar file I provide and keeps loading rhino from the system libs:
$ java -verbose:class -jar ../shrinksafe/custom_rhino.jar
...
[Opened /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
[Loaded org.mozilla.javascript.tools.shell.Main from /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
[Loaded org.mozilla.javascript.ContextFactory from /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
[Loaded org.mozilla.javascript.tools.shell.ShellContextFactory from /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
...
If I specify a classpath, it still loads from the system rhino library:
$ java -classpath ../shrinksafe/ -verbose:class -jar ../shrinksafe/custom_rhino.jar
...
[Opened /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
[Loaded org.mozilla.javascript.tools.shell.Main from /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
[Loaded org.mozilla.javascript.ContextFactory from /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
[Loaded org.mozilla.javascript.tools.shell.ShellContextFactory from /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar]
...
If I change over to using sun's JRE, it works fine:
$ sudo update-java-alternatives --set java-6-sun
$ java -verbose:class -jar ../shrinksafe/custom_rhino.jar
...
[Loaded org.mozilla.javascript.tools.shell.Main from file:/home/bryan/bzr/dojo/util/shrinksafe/custom_rhino.jar]
[Loaded org.mozilla.javascript.RhinoException from file:/home/bryan/bzr/dojo/util/shrinksafe/custom_rhino.jar]
[Loaded org.mozilla.javascript.EvaluatorException from file:/home/bryan/bzr/dojo/util/shrinksafe/custom_rhino.jar]
...
Follow ups
-
[Bug 255149]
From: Mercurial, 2016-04-16
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Bug Watch Updater, 2012-12-01
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Launchpad Bug Tracker, 2011-04-08
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Bug Watch Updater, 2011-02-04
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Hannes Wallnoefer, 2010-02-20
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Launchpad Bug Tracker, 2010-02-19
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Bug Watch Updater, 2010-02-18
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Bug Watch Updater, 2010-02-07
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Matthias Klose, 2010-02-03
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Hannes Wallnoefer, 2010-02-03
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Matthias Klose, 2010-02-03
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: LiNer, 2010-01-20
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: LiNer, 2010-01-19
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: LiNer, 2010-01-19
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Frank Groeneveld, 2009-12-21
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Kees Cook, 2009-09-13
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Craig, 2009-09-13
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Dirk Louwers, 2009-08-11
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: David Leon, 2009-05-19
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Alan Tam, 2009-02-17
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Craig, 2008-10-21
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Bryan Forbes, 2008-10-07
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Raimund Meyer, 2008-10-07
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Onkar Shinde, 2008-08-29
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Chris Cheney, 2008-08-29
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Chris Cheney, 2008-08-29
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Bug Watch Updater, 2008-08-06
-
[Bug 255149] Re: javascript script support through rhino should not be on bootclasspath
From: Matthias Klose, 2008-08-06
-
[Bug 255149] Re: OpenJDK doesn't respect classpath or overriding jar files
From: Matthias Klose, 2008-08-06
-
[Bug 255149] [NEW] OpenJDK doesn't respect classpath or overriding jar files
From: Bryan Forbes, 2008-08-05
References