FS#29843 - [jre7-openjdk-headless] Rhino without javax.script.RhinoScriptEngineFactory?
Attached to Project:
Arch Linux
Opened by Alexander (AlexanderR) - Friday, 11 May 2012, 13:58 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 15 September 2012, 08:24 GMT
Opened by Alexander (AlexanderR) - Friday, 11 May 2012, 13:58 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 15 September 2012, 08:24 GMT
|
Details
Description:
Neither java-rhino package nor rhino.jar in jre7-openjdk-headless provide RhinoScriptEngineFactory implementation. Following command shows no results which means that there are no jar files with corresponding entry in manifest: find /usr/lib/jvm/ -name "*.jar" -exec jar -tf {} \; | grep META-INF/services/javax.script.ScriptEngineFactory Steps to reproduce: Install jre7-openjdk-headless 7.b147_2.1-3 (it contains rhino.jar). Try to launch software that Expected behavior: Arch should provide rhino bindings for javax.script API somewhere (like Oracle Java does) as expected by numerous software (see for example Netbeans javafx plugin bug report - http://netbeans.org/bugzilla/show_bug.cgi?id=209491). May be related: Debian bug (not directly related): http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=669078 Rhino bug: https://bugzilla.mozilla.org/show_bug.cgi?id=379385 SO question (comments in first answer): http://stackoverflow.com/questions/6089773/javascript-engine-can-not-be-found-scripting-for-the-java-platform |
This task depends upon
package scriptingtest;
import java.util.Iterator;
import javax.script.ScriptEngineFactory;
import javax.script.ScriptEngineManager;
public class ScriptingTest
{
public static void main(String[] args)
{
ScriptEngineManager manager = new ScriptEngineManager();
for (Iterator<ScriptEngineFactory> it = manager.getEngineFactories().iterator(); it.hasNext();)
{
ScriptEngineFactory factory = it.next();
System.out.println(factory.getEngineName());
}
}
}
Blank output means no success.
META-INF/services/javax.script.ScriptEngineFactory
[root@workstation64 andyrtr]# pacman -Q jdk7-openjdk rhino
jdk7-openjdk 7.u7_2.3.2-1
rhino 1.7R3-3
So this has been fixed meanwhile? Can we close it?
Nice catch!