Ubuntu 18.04 josm: No valid JVM found

Bug #1770391 reported by Dennis Real
82
This bug affects 17 people
Affects Status Importance Assigned to Milestone
josm (Ubuntu)
Fix Released
Undecided
Unassigned
Bionic
Confirmed
Undecided
Unassigned

Bug Description

After fresh installation of josm:
root@bar:# agt install josm
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden NEUEN Pakete werden installiert:
  josm
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 8.024 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 18,1 MB Plattenplatz zusätzlich benutzt.
Holen:1 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 josm all 0.0.svn13576+dfsg-3 [8.024 kB]
Es wurden 8.024 kB in 22 s geholt (363 kB/s).
Vormals nicht ausgewähltes Paket josm wird gewählt.
(Lese Datenbank ... 567693 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../josm_0.0.svn13576+dfsg-3_all.deb ...
Entpacken von josm (0.0.svn13576+dfsg-3) ...
Trigger für mime-support (3.60ubuntu1) werden verarbeitet ...
Trigger für desktop-file-utils (0.23-1ubuntu3) werden verarbeitet ...
Trigger für bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) werden verarbeitet ...
Rebuilding /usr/share/applications/bamf-2.index...
josm (0.0.svn13576+dfsg-3) wird eingerichtet ...
Trigger für man-db (2.8.3-2) werden verarbeitet ...
Trigger für gnome-menus (3.13.3-11ubuntu1) werden verarbeitet ...
Trigger für hicolor-icon-theme (0.17-2) werden verarbeitet ...
root@bar:#

foo@bar:~$ josm
No valid JVM found to run JOSM.

foo@bar:~$java --version
openjdk 10.0.1 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: josm 0.0.svn13576+dfsg-3
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu May 10 13:32:22 2018
InstallationDate: Installed on 2016-04-30 (740 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitecture: all
SourcePackage: josm
UpgradeStatus: Upgraded to bionic on 2018-05-02 (7 days ago)

Revision history for this message
Dennis Real (x-ubunmuone-z) wrote :
Revision history for this message
Don-vip (vincent-privat) wrote :

This has been fixed upstream in revision 13700: https://josm.openstreetmap.de/changeset/13700/josm
And the fix is in Debian (version 13710): https://packages.debian.org/sid/josm
as well in cosmic: https://bugs.launchpad.net/ubuntu/+source/josm/0.0.svn13710+dfsg-1

13710 must either be backported to bionic or at least bionic version must be patched with revisions 13695 + 13700:
https://josm.openstreetmap.de/changeset/13695/josm
https://josm.openstreetmap.de/changeset/13700/josm

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in josm (Ubuntu):
status: New → Confirmed
Revision history for this message
Don-vip (vincent-privat) wrote :
Revision history for this message
Bo-an, Chen (atsdchen) wrote :

"I am Taiwan user and new to Ubuntu, please forgive me for some wrong/inappropriate translations on wordings or terminology."

I installed JOSM from Ubuntu software today (about 7/24 UTC+8 20:30)

Click short-cut on GUI, JOSM appeared no action and terminated without launching on window/screen.

And I asked for help on forum, people suggest me enter

sudo josm

on terminal then results appeared No valid JVM found, I think this error appeared commonly on previous cases.

I generally did like this
for java runtime environment, I entered on terminal:
sudo ln -s /usr/bin/java /usr/local/bin/jamvm

However, I am not sure if it is essential since in Ubuntu 18 JRE should be worked initially,

Then in JOSM aspect, we adjusted these things:

sudo echo "deb https://josm.openstreetmap.de/apt trusty universe" >> /etc/apt/sources

[or replace as (echo "deb https://josm.openstreetmap.de/apt trusty universe" | sudo tee -a /etc/apt/sources)]

wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo apt-key add -

sudo apt-get update

sudo apt-get remove josm josm-plugins

sudo apt-get install josm

some of the core technical info can be found on these two web pages;
https://josm.openstreetmap.de/wiki/Download#Ubuntu
and
https://josm.openstreetmap.de/wiki/HowTo/JOSM-under-Linux

however this bug or deficiency on JOSM/Ubuntu or may be very complicated for beginners to adjust themselves.

sorry for so long descriptions.

Revision history for this message
Eduard Hasenleithner (eduard-hasenleithner) wrote :

What needs to be done to get the fixed version into bionic?

Revision history for this message
Ross Gammon (rosco2) wrote :

This makes josm unusable for Bionic users, so the importance of the bug should be set to high by someone with permission for that (Bug Control).

I have not had time to confirm if implementing only that change (13700: https://josm.openstreetmap.de/changeset/13700/josm) fixes the problem. A Stable Release Update (SRU - https://wiki.ubuntu.com/StableReleaseUpdates) would be required, if that small fix works.

I can confirm that backporting josm 0.0.svn14460+dfsg-1 from disco to bionic works.

Unfortunately, I have given up getting backports sponsored in Ubuntu (nobody seems willing these days). But if you are game you could try installing from my Backports ppa:
$ sudo add-apt-repository ppa:rosco2/backports
$ sudo apt-get update
But be careful, there may be other backports in the ppa that you don't want to upgrade to.

Revision history for this message
flieller (greg88100) wrote :

Hi,
you can start Josm on Ubuntu 18.04.1 LTS by running the java program directly. that is not the bug fix but allow to run josm in the meantime :)

first make sure that a java virtual machine is installed, for that enter in a terminal

foo@bar:~$ java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

if you have the command "java" then a virtual machine is installed and then execute the java compilled file with

foo@bar:~$ cd /usr/share/josm/
foo@bar:/usr/share/josm$ java -jar josm.jar

Revision history for this message
Sven Eppler (ubuntu-one-q) wrote :

I can confirm this bug for Ubuntu 18.04. with 0.0.svn13576+dfsg-3 too.

Really disappointing...

Workaround with manually starting it as flieller suggest works. :)

Revision history for this message
Jacques Malaprade (malapradej) wrote :

This page shows how to install the latest version in my case for Bionic that overcomes the bug.

https://josm.openstreetmap.de/wiki/Download#Ubuntu

Dylan Aïssi (daissi)
Changed in josm (Ubuntu Bionic):
status: New → Confirmed
Changed in josm (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.