pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/48246: openjdk7 jrunscript fails to run
>Number: 48246
>Category: pkg
>Synopsis: openjdk7 jrunscript fails to run
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 26 21:55:00 +0000 2013
>Originator: Nat Sloss
>Release: pkgsrc-2013Q2
>Organization:
>Environment:
NetBSD beast 6.99.23 NetBSD 6.99.23 (LOCKDEBUG) #4: Wed Jul 17 22:24:41 EST
2013 build@beast:/usr/src/sys/arch/i386/compile/obj/LOCKDEBUG i386
>Description:
With jrunscript from openjdk7 it fails to run with the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/mozilla/javascript/ContextFactory
at
com.sun.script.javascript.RhinoScriptEngine.<clinit>(RhinoScriptEngine.java:71)
at
com.sun.script.javascript.RhinoScriptEngineFactory.getScriptEngine(RhinoScriptEngineFactory.java:74)
at
javax.script.ScriptEngineManager.getEngineByName(ScriptEngineManager.java:243)
at com.sun.tools.script.shell.Main.getScriptEngine(Main.java:411)
at com.sun.tools.script.shell.Main.processOptions(Main.java:169)
at com.sun.tools.script.shell.Main.main(Main.java:44)
jrunscript -q says that rhino is available.
>How-To-Repeat:
Enter jrunscript
>Fix:
The problem is that rhino.jar is not added to the search path for he vm, so the
solution is to apply this patch:
--- /dev/null 2013-09-27 07:11:44.000000000 +1000
+++ patches/patch-hotspot_src_share_vm_runtime_os.cpp 2013-09-26
21:55:03.000000000 +1000
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- hotspot/src/share/vm/runtime/os.cpp.orig 2012-08-10 16:28:05.000000000
+0000
++++ hotspot/src/share/vm/runtime/os.cpp
+@@ -1102,6 +1102,7 @@ bool os::set_boot_path(char fileSep, cha
+ "%/lib/jce.jar:"
+ "%/lib/charsets.jar:"
+ "%/lib/jfr.jar:"
++ "%/lib/rhino.jar:"
+ #ifdef __APPLE__
+ "%/lib/JObjC.jar:"
+ #endif
Then make mps and rebuild.
Regards,
Nat.
Home |
Main Index |
Thread Index |
Old Index