Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Guillaume ALAUX (galaux)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No


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 -

May be related:
Debian bug (not directly related):
Rhino bug:
SO question (comments in first answer):
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 15 September 2012, 08:24 GMT
Reason for closing:  Fixed
Comment by Alexander (AlexanderR) - Friday, 11 May 2012, 19:41 GMT
Just in case here is a test snippet:

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 =;

Blank output means no success.
Comment by Andreas Radke (AndyRTR) - Sunday, 20 May 2012, 12:14 GMT
Guillaume, can you please have a look? I guess this should be done in the rhino pkg or maybe solved in the next OpenJDK update?
Comment by Guillaume ALAUX (galaux) - Sunday, 20 May 2012, 12:42 GMT
Yes, I should have answered this. I have had a look at it but I need further investigation.
Comment by Andreas Radke (AndyRTR) - Saturday, 15 September 2012, 06:18 GMT
[root@workstation64 andyrtr]# find /usr/lib/jvm -name "*.jar" -exec jar -tf {} \; | grep 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?
Comment by Guillaume ALAUX (galaux) - Saturday, 15 September 2012, 08:18 GMT
Agree: it seems the necessary classes are back. I also checked the specified code which gives "Rhino" as available ScriptEngineManager
Nice catch!