I think I have the same bug. But I'm not sure. I just upgraded to 12.04 lts and 
after that I couldn't start josm from the unity launcher anymore.
So I did/found the following
1. Started command_promt typed "josm" and got "No valid JVM found to run JOSM."
2. Checked for packages "openjdk-6-jre | sun-java6-jre | openjdk-7-jre" in 
programcentral and found that "openjdk-6-jre" was installed
3. searched machine for josm.jar and found it "/usr/share/josm/josm.jar"
4. tried command "java -jar /usr/share/josm/josm.jar" and josm started no 
problem.
5. checked the script "/usr/bin/josm" that is used to start josm. the line that 
gives javacommands (I think not any godd with scripts) says 
"JAVA_CMDS="$JAVA_HOME/bin/java /usr/lib/jvm/java-6-openjdk/bin/java 
/usr/lib/jvm/java-6-sun/bin/java" " but the location of java command in my 
system seems to be "/usr/lib/jvm/java-6-openjdk-i386/jre/bin/java" thus the 
script returns that no JVM is found.
6. Changed this line to "JAVA_CMDS="$JAVA_HOME/bin/java 
/usr/lib/jvm/java-6-openjdk/bin/java /usr/lib/jvm/java-6-sun/bin/java 
/usr/lib/jvm/java-6-openjdk-i386/jre/bin/java" "
7. Tried to launch from unity menu and it worked :)

So I thinck that the problem is the script not that the JVM isn't
installed?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/916948

Title:
  Does not default on java runtime (eg. default-jre)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/josm/+bug/916948/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to