Modify

Opened 6 years ago

Closed 6 years ago

#17490 closed defect (othersoftware)

Cannot start JOSM with JDK instead of JRE

Reported by: Josmi Owned by: team
Priority: normal Milestone:
Component: Installer Windows Version: tested
Keywords: jdk Cc:

Description

OS: Windows 7 (64 bit)
JOSM: 14824
JDK: 11.0.2 (64 bit), no other Java version installed

When launching josm.exe, a window pops up, saying:
"This application requires a Java Runtime Environment 1.8.0
The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted."

When using a command prompt to launch "java -jar 'C:\Program Files (x86)\JOSM\josm-tested.jar'", the result is:
"Error: opening registry key 'Software\JavaSoft\Java Runtime Environment'
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment."

It seems as if JOSM was looking for a JRE-specific registry key, ignoring the path to the JDK key which is:
HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/JDK/11.0.2

Note: There is no JRE version of Java 11 from Oracle, only JDK.

Attachments (0)

Change History (3)

comment:1 by GerdP, 6 years ago

Make sure that you set java_home and path. You can do this in a *.cmd file similar to this:

setlocal
set java_home=c:\Program Files\Java\jdk-11.0.2
set path=c:\Program Files\Java\jdk-11.0.2\bin;%PATH%
java -jar 'C:\Program Files (x86)\JOSM\josm-tested.jar

Note that path has to point to sub directory bin.

comment:2 by Don-vip, 6 years ago

Keywords: jdk added
Priority: criticalnormal

comment:3 by Don-vip, 6 years ago

Resolution: othersoftware
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.