FS#41656 - Unable to find java executable /usr/lib/jvm/java-default-runtime/jre/bin/java

Attached to Project: Arch Linux
Opened by Gero (jlp2) - Friday, 22 August 2014, 14:46 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 22 August 2014, 16:01 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

After upgrade to java-common 1-5 released yesterday, I noticed Java-Web-Apps applications don't start up.

There must be something wrong with the 'archlinux-java'-skript. The Symlink of /usr/lib/jvm/java-default-runtime/jre/bin/java is wrong. If I try to start a java web-App via Firefox/IcedTea i get the result:

Aug 22 16:18:40 arch [14854]: IcedTea-Web c-plugin - for more info see itweb-settings debug options or console...
Aug 22 16:18:40 arch [14854]: IcedTea-Web c-plugin error manual log:
Aug 22 16:18:40 arch [14854]: Failed to spawn applet viewer Kindprozess »/usr/lib/jvm/java-default-runtime/jre/bin/java« konnte nicht ausgeführt werden (Datei oder Verzeichnis nicht gefunden)
Aug 22 16:18:40 arch [14854]: IcedTea-Web c-plugin - for more info see itweb-settings debug options or console....
Aug 22 16:18:40 arch [14854]: IcedTea-Web c-plugin error manual log:
Aug 22 16:18:40 arch [14854]: Unable to find java executable /usr/lib/jvm/java-default-runtime/jre/bin/java

So the Problem is the Path of the Symlink '/usr/lib/jvm/java-default-runtime/'

the Symlinks includes the Fullpath /usr/lib/jvm/java-default-runtime/jre/ but it should be just /usr/lib/jvm/java-default-runtime/ (without the folder jre).

If i correct the Symlink with:
sudo rm -r /usr/lib/jvm/java-default-runtime
sudo ln -s /usr/lib/jvm/java-8-openjdk /usr/lib/jvm/java-default-runtime

...no problems and it worked like a charm.

If I use the script again with:
sudo archlinux-java fix
...the manualy repaired Symlink was deleted and a new Symlink with the wrong Path in it, was created again. So the Program was unable to find java executable again.

So I think the Script should generate a Symlink just to "/usr/lib/jvm/java-8-openjdk" and NOT to "/usr/lib/jvm/java-8-openjdk/jre"....
This task depends upon

Closed by  Doug Newgard (Scimmia)
Friday, 22 August 2014, 16:01 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#41639 

Loading...