You are not logged in.

#1 2022-04-24 18:12:24

Shohreh
Member
Registered: 2012-12-15
Posts: 243

[SOLVED] [JOSM] How to upgrade Java from 8 to latest?

Hello,

JOSM says: "JOSM soon will no longer support this version of Java, you should update to version 11 or better".

I was running JRE "Version 8 update 331 (1.8.0_331)".

Since JRE 11 seems unavailable for Windows 32-bit, I ran OpenJDK17U-jre_x86-32_windows_hotspot_17.0.2_8.msi, which seems to run:

c:\Program Files\JOSM>java -version
openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment Temurin-17.0.2+8 (build 17.0.2+8)
OpenJDK Server VM Temurin-17.0.2+8 (build 17.0.2+8, mixed mode, emulated-client, sharing)

But JOSM still isn't happy: "JOSM soon will no longer support this version of Java, you should update to version 11 or better"

What do I need to do to tell JOSM to find the Java 17 runtime I just installed?

Thank you.

--
Edit: FWIW, Windows' system PATH did have Eclipse 17 at the very beginning, maybe to have its version launched by default:

C:\Program Files\Eclipse Adoptium\jre-17.0.2.8-hotspot\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath; etc.

Through Control Panel, I removed JRE 8, and re-ran JOSM: "This application requires a Java Runtime Environment 1.8.0" :-/

--
Edit: Removed Eclipse JRE 17, installed Azul Zulu Java 18 (STS) JRE Zulu: 18.30.11:

c:\Program Files\JOSM>java -version
openjdk version "18.0.1" 2022-04-19
OpenJDK Runtime Environment Zulu18.30+11-CA (build 18.0.1+10)
OpenJDK Client VM Zulu18.30+11-CA (build 18.0.1+10, mixed mode, emulated-client)

Re-ran JOSM: Solved!

Last edited by Shohreh (2022-04-24 18:43:46)

Offline

#2 2022-05-03 11:45:48

SomeoneElse
Member
Registered: 2010-10-13
Posts: 1,585

Re: [SOLVED] [JOSM] How to upgrade Java from 8 to latest?

That sounds very similar to the problem I described at https://community.openstreetmap.org/t/h … osm/1259/2 (and a very similar solution).

Offline

Board footer

Powered by FluxBB