Opened 10 months ago
Closed 10 months ago
#23566 closed defect (worksforme)
JOSM does not see the new version of Java 17
Reported by: | anonymous | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core Webstart | Version: | |
Keywords: | template_report | Cc: |
Description
I have Java 17 installed, but josm.jnlp does not see it and tries to start with the old Java 8 (I had to leave Java 8 and Java 17 together). But josm-tested.jar works fine for me in Java 17
Please provide any additional information below. Attach a screenshot if possible.
Identification: JOSM/1.5 (18907 ru) Windows 10 64-Bit
OS Build number: Windows 10 Enterprise 2016 LTSB 1607 (14393)
Memory Usage: 222 MB / 4066 MB (86 MB allocated, but free)
Java version: 17.0.10+11-LTS-240, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Attachments (0)
Change History (16)
follow-up: 2 comment:1 by , 10 months ago
comment:2 by , 10 months ago
Replying to GerdP:
I have Java 17 installed, but josm.jnlp does not see it
You should change that. Maybe the path to the old JRE is specified in a desktop icon? Or the new one should be configured?
I downloaded a new one and it immediately tries to start through Java 8, how can I tell it to start from Java 17?
follow-up: 6 comment:3 by , 10 months ago
Does this help? https://josm.openstreetmap.de/wiki/Download#Webstart
follow-up: 7 comment:4 by , 10 months ago
I guess this has to be changed in the .jnlp
java version="1.8+"
Does it work if you manually change it to java version="11+"
with a text editor?
comment:5 by , 10 months ago
Component: | Core → Core Webstart |
---|
comment:6 by , 10 months ago
Replying to GerdP:
Does this help? https://josm.openstreetmap.de/wiki/Download#Webstart
josm-tested.jar work, josm.jnlp no
comment:7 by , 10 months ago
Replying to skyper:
I guess this has to be changed in the .jnlp
java version="1.8+"Does it work if you manually change it to
java version="11+"
with a text editor?
I changed it, but in the file properties in the “Object” field there is an entry:
"C:\Program Files\Java\jre-1.8\bin\javaws.exe" -localfile -J-Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp "C:\Users\Users\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-5d66748b"
If I change it to a folder with Java 17, it won’t open, how should I change it?
comment:8 by , 10 months ago
I followed the instructions in https://josm.openstreetmap.de/wiki/Download#Webstart and I have now an icon with josm.jnlp on my Desktop which starts JOSM 19017 in a Java 21 JRE. I guess I can change the JRE in the configuration dialog for OpenWebStart.
Identification: JOSM/1.5 (19017 en_GB) Windows 10 64-Bit OS Build number: Windows 10 Pro 2009 (19045) Memory Usage: 264 MB / 1888 MB (89 MB allocated, but free) Java version: 21.0.1+12-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
follow-up: 10 comment:9 by , 10 months ago
I'm betting you still have Oracle Java 8 installed. For the JNLP, we recommend OpenWebStart.
You may have to fiddle with the Open with
right-click option if you keep Oracle Java 8 installed.
comment:10 by , 10 months ago
Replying to taylor.smock:
I'm betting you still have Oracle Java 8 installed. For the JNLP, we recommend OpenWebStart.
You may have to fiddle with the
Open with
right-click option if you keep Oracle Java 8 installed.
I hav Java 8 and Java DK 17.0.10
comment:12 by , 10 months ago
Replying to GerdP:
Do you also have OpenWebStart installed as recommended?
Is it possible to run josm.jnlp without OpenWebStart? So many different additional programs for one josm - it's stupid. I installed Java 17, why is this not enough?
follow-up: 14 comment:13 by , 10 months ago
I installed Java 17, why is this not enough?
It is. You already mentioned that you can start JOSM on the command line. My understanding was that you prefer to use the *.jnlp file to start JOSM, and we recommand to use OpenWebStart for this.
comment:14 by , 10 months ago
Replying to GerdP:
I installed Java 17, why is this not enough?
It is. You already mentioned that you can start JOSM on the command line. My understanding was that you prefer to use the *.jnlp file to start JOSM, and we recommand to use OpenWebStart for this.
You say that josm.jnlp is an already tested version, josm-tested.jar is not. How to work with the stable version without OpenWebStart?
comment:15 by , 10 months ago
r19017 is the curent tested version of JOSM, the corresponding jar file is named josm-tested.jar.
In a few weeks there will be a newer tested version, it will also be named josm-tested.jar, but that jar file will be different.
The advantage of the *.jnlp file with OpenWebStart is that it will automatically download the newest tested version of JOSM. I think it will also download a newer java version if wanted.
Hope it is clear now?
comment:16 by , 10 months ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
You should change that. Maybe the path to the old JRE is specified in a desktop icon? Or the new one should be configured?