Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 394609

Summary: icedtea-7.2.0-r3: jrunscript: script engine for language js can not be found
Product: Gentoo Linux Reporter: Jan Kuemmel <gentoo-bugz>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=885
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 247140    

Description Jan Kuemmel 2011-12-13 22:21:58 UTC
jrunscript from icedtea-7.2.0 just exits with the following error message:
"script engine for language js can not be found"

With USE=javascript, a rhino.jar appears inside the jre directory, but some glue code seems to be missing. While src.zip contains RhinoScriptEngineFactory and friends, the corresponding class files are neither in rt.jar nor in rhino.jar

dev-java/icedtea-7.2.0-r3
USE=X alsa cups javascript jbootstrap nss pulseaudio source webstart

dev-java/rhino-1.7.2-r2
Comment 1 Miroslav Ć ulc gentoo-dev 2011-12-26 12:27:29 UTC
i can confirm this with dev-java/icedtea-7.2.0-r4
Comment 2 Ralph Sennhauser (RETIRED) gentoo-dev 2012-05-01 18:30:30 UTC
Using icedtea-7.2.1 I get:

$ GENTOO_VM=icedtea7 jrunscript -e "print('hello world\n')"
hello world

Can you still reproduce the issue with icedtea-7.2.1 and if so what works as a minimal test case?
Comment 3 Ralph Sennhauser (RETIRED) gentoo-dev 2012-05-12 14:15:10 UTC
USE="-pulseaudio" may be a workaround till next release of icedtea-7.
Comment 4 Jan Kuemmel 2012-05-14 10:19:43 UTC
dev-java/icedtea-7.2.1
USE="X alsa cups javascript jbootstrap nss pulseaudio source webstart -cjk -debug -doc -examples -nsplugin -pax_kernel -systemtap -test"

$ GENTOO_VM=icedtea-7 jrunscript -e "print('hello world\n')"
script engine for language js can not be found

same result with USE=-pulseaudio

Do you have a /usr/lib/jvm/icedtea7 (without a dash) symlink or was that a typo?
Comment 5 Ralph Sennhauser (RETIRED) gentoo-dev 2012-05-14 12:34:49 UTC
yes, that was a typo. 'icedtea-7' is correct.
Comment 6 Ralph Sennhauser (RETIRED) gentoo-dev 2012-06-10 14:02:56 UTC
This is fixed in icedtea-7.2.2. Thanks for the report.