Modify

Opened 8 weeks ago

Closed 8 weeks 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)

comment:1 by GerdP, 8 weeks ago

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?

in reply to:  1 comment:2 by anonymous, 8 weeks 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?

comment:4 by skyper, 8 weeks 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 skyper, 8 weeks ago

Component: CoreCore Webstart

in reply to:  3 comment:6 by anonymous, 8 weeks ago

Replying to GerdP:

Does this help? https://josm.openstreetmap.de/wiki/Download#Webstart

josm-tested.jar work, josm.jnlp no

in reply to:  4 comment:7 by anonymous, 8 weeks 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 GerdP, 8 weeks 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

comment:9 by taylor.smock, 8 weeks 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.

in reply to:  9 comment:10 by anonymous, 8 weeks 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:11 by GerdP, 8 weeks ago

Do you also have OpenWebStart installed as recommended?

in reply to:  11 comment:12 by anonymous, 8 weeks 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?

comment:13 by GerdP, 8 weeks 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.

in reply to:  13 comment:14 by anonymous, 8 weeks 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 GerdP, 8 weeks 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 GerdP, 8 weeks ago

Resolution: worksforme
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.