Opened 21 months ago
Closed 21 months ago
#23719 closed defect (othersoftware)
Josm does not find Jre
| Reported by: | anonymous | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | template_report snap | Cc: |
Description
What steps will reproduce the problem?
- Start Josm in Ubuntu noble numbat
What is the expected result?
I expect Josm to start
What happens instead?
Josm issues a warning about an old Java version, while :
xxxxx:~$ java -version
openjdk version "21.0.3" 2024-04-16
OpenJDK Runtime Environment (build 21.0.3+9-Ubuntu-1ubuntu1)
OpenJDK 64-Bit Server VM (build 21.0.3+9-Ubuntu-1ubuntu1, mixed mode, sharing)
xxxxx:~$
Please provide any additional information below. Attach a screenshot if possible.
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2024-04-29 18:37:36 +0200 (Mon, 29 Apr 2024)
Revision:19067
Build-Date:2024-05-02 01:31:13
URL:https://josm.openstreetmap.de/svn/trunk
Identification: JOSM/1.5 (19067 en) Linux Ubuntu 24.04 LTS
Memory Usage: 462 MB / 1962 MB (164 MB allocated, but free)
Java version: 11.0.22+7-post-Ubuntu-0ubuntu220.04.1, Ubuntu, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1366×768 (scaling 1.00×1.00)
Maximum Screen Size: 1366×768
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_US.UTF-8
System property file.encoding: ANSI_X3.4-1968
System property sun.jnu.encoding: ANSI_X3.4-1968
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: ubuntu:GNOME
VM arguments: [-Duser.home=${HOME}, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED]
Dataset consistency test: No problems found
Attachments (0)
Change History (7)
follow-ups: 2 3 6 comment:1 by , 21 months ago
comment:2 by , 21 months ago
Replying to GerdP:
Seems you have configured an JRE version 11 to be used by default. josm-tested.jar is started via the JRE, it cannot search for a different one.
See the copy of my Terminal :
xxxxx:~$ java -version
openjdk version "21.0.3" 2024-04-16
OpenJDK Runtime Environment (build 21.0.3+9-Ubuntu-1ubuntu1)
OpenJDK 64-Bit Server VM (build 21.0.3+9-Ubuntu-1ubuntu1, mixed mode, sharing)
xxxxx:~$
Also
Josm is installed in Ubuntu as a snap, thus their favorite Java is/should be in that snap (?)
My conclusion : The snap contains an outdated JRE
Thx,
Gys
comment:3 by , 21 months ago
Replying to GerdP:
Seems you have configured an JRE version 11 to be used by default. josm-tested.jar is started via the JRE, it cannot search for a different one.
See the copy of my Terminal :
xxxxx:~$ java -version
openjdk version "21.0.3" 2024-04-16
OpenJDK Runtime Environment (build 21.0.3+9-Ubuntu-1ubuntu1)
OpenJDK 64-Bit Server VM (build 21.0.3+9-Ubuntu-1ubuntu1, mixed mode, sharing)
xxxxx:~$
Also
Josm is installed in Ubuntu as a snap, thus their favorite Java is/should be in that snap (?)
My conclusion : The snap contains an outdated JRE
Thx,
Gys gys.de.jongh@…
comment:4 by , 21 months ago
The popup just warns that JOSM will soon no longer support JRE 11. Just press OK and I guess that the snap will be updated once JOSM really requires a higher JRE version.
Maybe ask the creator of the snap to confirm this.
comment:5 by , 21 months ago
| Keywords: | snap added |
|---|
Note that the JOSM snap is unofficial and has some issues. Taking a look at your status report, I find strange settings for your System property file.encoding and you seem to miss some VM arguments. Both could lead to other problems. If you are looking for a an official package, please, use our Ubuntu packages.
comment:6 by , 21 months ago
Replying to GerdP:
Seems you have configured an JRE version 11 to be used by default. josm-tested.jar is started via the JRE, it cannot search for a different one.
I have not used a josm-tested.jar I used the App Manager in Ubuntu, which resulted in installing a Josm snap. In Ubuntu 24 this is the only version which can be installed via the App Manager. I checked all version of Java on my machine and openjdk version "21.0.3" 2024-04-16 is not only the active version, but also the only version. There is no Java 11. Josm is still functional, so it must have access to a Java version. My conclusion is that the snap pack contains the outdated Java.
comment:7 by , 21 months ago
| Resolution: | → othersoftware |
|---|---|
| Status: | new → closed |



Seems you have configured an JRE version 11 to be used by default. josm-tested.jar is started via the JRE, it cannot search for a different one.