NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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?

asked 17 Mar '13, 10:50

ThorBue's gravatar image

ThorBue
41115
accept rate: 0%

closed 18 Mar '13, 16:13

RM87's gravatar image

RM87
3.3k23753

1

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.

(17 Mar '13, 11:06) scai ♦
1

"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?

(17 Mar '13, 13:28) ThorBue
1

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.

(17 Mar '13, 16:08) scai ♦
1

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)

(17 Mar '13, 18:34) ThorBue

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".

permanent link

answered 17 Mar '13, 22:01

sleske's gravatar image

sleske
4.1k135678
accept rate: 24%

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

ii  openjdk-6-jre-headless                 6b27-1.12.3-0ubuntu1~12.04.1                         OpenJDK Java runtime, using Hotspot JIT (headless)
ii  openjdk-6-jre-lib                      6b27-1.12.3-0ubuntu1~12.04.1                         OpenJDK Java runtime (architecture independent libraries)
ii  openjdk-7-jre                          7u15-2.3.7-0ubuntu1~12.04.1                          OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-7-jre-headless                 7u15-2.3.7-0ubuntu1~12.04.1                          OpenJDK Java runtime, using Hotspot JIT (headless)
ii  openjdk-7-jre-lib                      7u15-2.3.7-0ubuntu1~12.04.1                          OpenJDK Java runtime (architecture independent libraries)

dpkg -l|grep jre

ii  default-jre-headless                   1:1.6-43ubuntu2                                      Standard Java or Java compatible Runtime (headless)
ii  icedtea-6-jre-cacao                    6b27-1.12.3-0ubuntu1~12.04.1                         Alternative JVM for OpenJDK, using Cacao
ii  icedtea-6-jre-jamvm                    6b27-1.12.3-0ubuntu1~12.04.1                         Alternative JVM for OpenJDK, using JamVM
ii  icedtea-7-jre-jamvm                    7u15-2.3.7-0ubuntu1~12.04.1                          Alternative JVM for OpenJDK, using JamVM
ii  openjdk-6-jre-headless                 6b27-1.12.3-0ubuntu1~12.04.1                         OpenJDK Java runtime, using Hotspot JIT (headless)
ii  openjdk-6-jre-lib                      6b27-1.12.3-0ubuntu1~12.04.1                         OpenJDK Java runtime (architecture independent libraries)
ii  openjdk-7-jre                          7u15-2.3.7-0ubuntu1~12.04.1                          OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-7-jre-headless                 7u15-2.3.7-0ubuntu1~12.04.1                          OpenJDK Java runtime, using Hotspot JIT (headless)
ii  openjdk-7-jre-lib                      7u15-2.3.7-0ubuntu1~12.04.1                          OpenJDK Java runtime (architecture independent libraries)

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 openjdk-6-jre package is not installed. Please try to install it and run the command again afterwards.

(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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×622
×76
×44
×1

question asked: 17 Mar '13, 10:50

question was seen: 6,028 times

last updated: 19 Mar '13, 06:59

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum