Opened 15 years ago
Closed 12 years ago
#4693 closed Bug (wontfix)
Cannot run CKPackager jar on JDK 6 on Linux
Reported by: | Russ Tennant | Owned by: | Wiktor Walc |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | |
Component: | Project : CKPackager | Version: | SVN (CKEditor) - OLD |
Keywords: | Cc: |
Description
Due to the packager jar bundling rhino and the JDK including rhino and the way that the package path is determined you get the following error.
java -jar ckpackager.jar Exception in thread "main" org.mozilla.javascript.EvaluatorException: Couldn't read source file "file:/usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar!/org/mozilla/javascript_source/includes/ckpackager.js: /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar!/org/mozilla/javascript_source/includes/ckpackager.js (No such file or directory)". (D:\xampp\htdocs\CKPackager\_source/ckpackager.js#49)
at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109) at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:96) at org.mozilla.javascript.Context.reportError(Context.java:897) at org.mozilla.javascript.Context.reportError(Context.java:915) at org.mozilla.javascript.tools.shell.Main.readFileOrUrl(Main.java:615) at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:465) at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:452) at org.mozilla.javascript.tools.shell.Global.load(Global.java:244) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:413) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97) at ckpackager.ckpackager._c0(D:\xampp\htdocs\CKPackager\_source/ckpackager.js:49) at ckpackager.ckpackager.call(D:\xampp\htdocs\CKPackager\_source/ckpackager.js) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065) at ckpackager.ckpackager.call(D:\xampp\htdocs\CKPackager\_source/ckpackager.js) at ckpackager.ckpackager.exec(D:\xampp\htdocs\CKPackager\_source/ckpackager.js) at org.mozilla.javascript.optimizer.OptRuntime$1.run(OptRuntime.java:252) at org.mozilla.javascript.Context.call(Context.java:515) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507) at org.mozilla.javascript.optimizer.OptRuntime.main(OptRuntime.java:240) at ckpackager.ckpackager.main(D:\xampp\htdocs\CKPackager\_source/ckpackager.js)
Discussion. http://cksource.com/forums/viewtopic.php?f=11&t=15629&p=42247#p42247
This can be worked around by using the JRE or JDK < 6.
Attachments (1)
Change History (8)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Yeah I tried it with Sun JDK 1.6.0_14 in addition to just running java on the command line to generate the thead dump that is in this report.
On Ubuntu with Java downloaded from sun where Java version 1.6.0_xx:
this will not work:
$JAVA_HOME/bin/java -jar ckpackager.jar
this will work:
$JAVA_HOME/jre/bin/java -jar ckpackager.jar
Changed 15 years ago by
Attachment: | ckpackager-openjdk.log added |
---|
comment:3 Changed 15 years ago by
Cc: | Confirmed added |
---|---|
Keywords: | Ubuntu JDK6 added |
Priority: | Normal → High |
Version: | → SVN (CKEditor) |
I can confirm that, having Ubuntu 9.10 and OpenJDK
mosipov@ubuntu910:~/Projekte/ckpackager-trunk/bin$ java -version java version "1.6.0_0" OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1) OpenJDK Client VM (build 14.0-b16, mixed mode, sharing)
In my opinion, this jar is completely fucked up. It assumes that rhino is in the classpath of the JRE + some file on the builder's windows system.
comment:4 Changed 15 years ago by
Well, I just ran ant to compile the lib myself, the exe target fails completely + the produced jar suffers from the same problem.
This should be taken seriously by the app author.
comment:5 Changed 15 years ago by
Cc: | Confirmed removed |
---|---|
Keywords: | Confirmed added; Ubuntu JDK6 removed |
Owner: | set to Wiktor Walc |
Moved "Confirmed" keyword added by mosipov to the right place (I didn't try to reproduce it yet).
comment:7 Changed 12 years ago by
Resolution: | → wontfix |
---|---|
Status: | confirmed → closed |
CKPackager is not supported any more. It was replaced by completely new builder in v4.
Seems like you are using Ubuntu. Did you try sun jdk? It maybe a bug in OpenJDK.