Attempting to run the scala interpreter from CLI: $ scala fails with: /usr/bin/scala: error: JVM_LIBDIR /usr/lib/jvm-exports/java-1.6.0 does not exist or is not a directory This dependency cannot (in my experience) be resolved with a package download, and the application is thus useless without using external hacks.
CORRECTION: Scala version is 2.9.1-3 (packagename: scala-2.9.1-3.fc17)
Created attachment 584743 [details] New version of scala tooltemplate patch to use default java version The scala tools link to hard coded java 1.6, which I think is no longer the default JVM on F17. To manually fix just edit the /bin/scala with the following: -export JAVA_HOME=/usr/lib/jvm/java-1.6.0/ +export JAVA_HOME=/usr/lib/jvm/java/
Thanks for the fix!
Will this be incorporated into the next package update?
I have installed the main packages for Java and Scala on F17. The lib folder /usr/lib/jvm/java is invalid. It is /usr/lib/jvm/jre. It appears that you can install another package that is not in the Scala dependency tree that will install the "java" link. However, using only the Scala dependency tree, you must set export JAVA_HOME=/usr/lib/jvm/jre/
I can confirm the fix from CS Wagner works here.
Mikko Tiihonen fix worked for me on a newly installed F17, java package being java-1.7.0-openjdk-1.7.0.3-2.1.fc17.6.x86_64.
This message is a reminder that Fedora 17 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 17. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '17'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 17's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 17 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 17's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed.