Opened 14 years ago

Closed 11 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:


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( at org.mozilla.javascript.DefaultErrorReporter.error( at org.mozilla.javascript.Context.reportError( at org.mozilla.javascript.Context.reportError( at at at at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at org.mozilla.javascript.MemberBox.invoke( at at org.mozilla.javascript.optimizer.OptRuntime.callName( at ckpackager.ckpackager._c0(D:\xampp\htdocs\CKPackager\_source/ckpackager.js:49) at\xampp\htdocs\CKPackager\_source/ckpackager.js) at org.mozilla.javascript.ContextFactory.doTopCall( at org.mozilla.javascript.ScriptRuntime.doTopCall( at\xampp\htdocs\CKPackager\_source/ckpackager.js) at ckpackager.ckpackager.exec(D:\xampp\htdocs\CKPackager\_source/ckpackager.js) at org.mozilla.javascript.optimizer.OptRuntime$ at at at org.mozilla.javascript.optimizer.OptRuntime.main( at ckpackager.ckpackager.main(D:\xampp\htdocs\CKPackager\_source/ckpackager.js)


This can be worked around by using the JRE or JDK < 6.

Attachments (1)

ckpackager-openjdk.log (4.8 KB) - added by Michael Osipov 14 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 14 years ago by Michael Osipov

Seems like you are using Ubuntu. Did you try sun jdk? It maybe a bug in OpenJDK.

comment:2 Changed 14 years ago by Russ Tennant

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 14 years ago by Michael Osipov

Attachment: ckpackager-openjdk.log added

comment:3 Changed 14 years ago by Michael Osipov

Cc: Confirmed added
Keywords: Ubuntu JDK6 added
Priority: NormalHigh
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 14 years ago by Michael Osipov

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 14 years ago by Wiktor Walc

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:6 Changed 14 years ago by Michael Osipov


if you need any Java/Ant assistance, contact me!

comment:7 Changed 11 years ago by Piotrek Koszuliński

Resolution: wontfix
Status: confirmedclosed

CKPackager is not supported any more. It was replaced by completely new builder in v4.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy