Bug 704814

Summary: IcedTea Browser Plugin Looks For java Executable in Non-Existent Directory
Product: [openSUSE] openSUSE 11.4 Reporter: Bill Wayson <bill_wayson>
Component: JavaAssignee: E-mail List <bnc-team-java>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: openSUSE 11.4   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Bill Wayson 2011-07-10 23:53:19 UTC
User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0

When or after accessing a web site that requires java (e.g.http://www.java.com/en/download/testjava.jsp), Firefox (5.0) produces an error dialog with, "icedteanp plugin error: Failed to run /usr/lib/jvm/java-1.6.0-openjdk/jre/bin/java.  For more detail rerun "firefox -g" in a terminal window."  The /usr/lib/jvm/ director does not contain a directory named "java-1.6.0-openjdk".  It contains:

java-1.6.0-openjdk-1.6.0
jre -> /etc/alternatives/jre
jre-1.6.0 -> /etc/alternatives/jre_1.6.0
jre-1.6.0-openjdk -> java-1.6.0-openjdk-1.6.0/jre
jre-openjdk -> /etc/alternatives/jre_openjdk

This error started after a recent openjdk update to java-1_6_0-openjdk-1.6.0.0_b22.1.10.2-4.3.1.i586 (or, possibly, icedtea-web to icedtea-web-1.1-0.4.2.i586).  I believe the openjdk update was the more recent of the two.  It has occurred on both i686 and x86_64 installations of openSUSE 11.4, and both times very recently after java updates.

Reproducible: Always

Steps to Reproduce:
1.  Install Firefox 5, openjdk, and icedtea-web, bring both up-to-date as of July 9, 2011.
2.  Browse to http://www.java.com/en/download/testjava.jsp
3.  Observe error message from icedtea plugin
Actual Results:  
Received dialog error message, "icedteanp plugin error: Failed to run /usr/lib/jvm/java-1.6.0-openjdk/jre/bin/java.  For more detail rerun "firefox -g" in a terminal window."

Expected Results:  
Expected to see the dancing java graphic.

I suspect manually adding in /usr/lib/jvm/ a link to java-1.6.0-openjdk-1.6.0 called "java-1.6.0-openjdk" would resolve the error message and cause java to be found and work.  But I don't know if the bug is the lack of this directory link or the java setup in /etc/alternatives/.
Comment 1 Bill Wayson 2011-07-11 00:10:20 UTC
As I suspected, adding a directory "java-1.6.0-openjdk" in /usr/lib/jvm/ that links to "java-1.6.0-openjdk-1.6.0" resolves the problem:  no error appears, and java works in Firefox.
Comment 2 Michal Vyskocil 2011-07-20 13:23:57 UTC
Already fixed, will be released on next update of icedtea-web

*** This bug has been marked as a duplicate of bug 704419 ***