I've installed JOSM with the ubuntu softwarecenter, but it won't run. As far as I can tell, I have "OpenJDK Java 7 Runtime" and "IcedTea Java Web Start" installed - and normally don't have JAVA issues for the time being. Any magic tricks? |
The question has been closed for the following reason "Issue solved" by RM87 18 Mar '13, 16:13
@ThorBue: Hm, looks like your Java installation is messed up. Can you run other Java programs? Did you maybe install openjdk-6-jre-headless? You need openjdk-6-jre. Please post the output of "dpkg -l|grep jdk" and "dpkg -l|grep jre", and the output of "java -version". answered 17 Mar '13, 22:01 sleske I don't have JAVA issues in my browser, that I'm aware of. But it possible that something isn't right as only 2 of the 4 openjdk packages in softwarecenter is installed. dpkg -l|grep jdk
dpkg -l|grep jre
java version "1.6.0_27" OpenJDK Runtime Environment (IcedTea6 1.12.3) (6b27-1.12.3-0ubuntu1~12.04.1) OpenJDK Client VM (build 20.0-b12, mixed mode, sharing)
(18 Mar '13, 06:23)
ThorBue
3
The
(18 Mar '13, 07:28)
scai ♦
2
Thanks - after installing openjdk-6 JOSM is working. Guess I thought jdk-6 was an older version, so I didn't install it when i upgraded to 12.04.
(18 Mar '13, 14:06)
ThorBue
|
Please explain won't run. Any error messages? OpenJDK should be fine although I don't know if JOSM is ready for Java 7. But you should already have version 6 installed because the Ubuntu josm packages depends on openjdk-6-jre.
"won't run" means that nothing happens when trying to start JOSM. No error message. But when trying via terminal I get "No valid JVM found to run JOSM."
I don't have openjdk-6 installed right now, as i'm not sure if having both openjdk-6 & 7 at the same time is possible without conflicts?
What happens exactly when you run
java -jar /usr/share/josm/josm.jar
in a terminal? Alternatively you can try to download a probably newer version from http://josm.openstreetmap.de/ or try the webstart from the same page.Running "java -jar /usr/share/josm/josm.jar" gives this
Debian-Release: 0.0.svn4878+dfsg1-1 Build-Date: 2012-02-04 11:37:23 Revision: 4878 Is-Local-Build: true
java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173) at java.awt.Window.<init>(Window.java:546) at java.awt.Frame.<init>(Frame.java:419) at java.awt.Frame.<init>(Frame.java:384) at javax.swing.JFrame.<init>(JFrame.java:174) at org.openstreetmap.josm.gui.SplashScreen.<init>(SplashScreen.java:42) at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:221)