Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
New to DCC - MacBook Pro Java failure
#java
#mac-os
I have a 2011 MacBook Pro running OS 10.13. I just bought a Digitrax Evolution Xpresss starter set. I downloaded and successfully installed JMRI and Java 11. DecoderPro won’t open because Java 11 needs to be installed. IT IS INSTALLED. Yes, I turned it off and back on again. I clicked on See More on the popup window and I get instructions for downloading Java 17. I downloaded and successfully installed Java 17. DecoderPro won’t open because Java 11 needs to be installed.
The Java 11 and Java 17 installations both installed successfully. What gives?
Tracy Reynolds
|
Tracy, Open a terminal window and type: java -version Copy the response and paste in a reply. It should look something like the following. I am using Java 21 from Azul.com. Java 17 is currently the recommend version. openjdk version "21.0.6" 2025-01-21 LTS OpenJDK Runtime Environment Zulu21.40+17-CA (build 21.0.6+7-LTS) OpenJDK 64-Bit Server VM Zulu21.40+17-CA (build 21.0.6+7-LTS, mixed mode, sharing) Where did you get the Java installer? Dave Sand ----- Original message ----- From: "Tracy Reynolds via groups.io" <threynolds2=[email protected]> Subject: [jmriusers] New to DCC - MacBook Pro Java failure Date: Thursday, May 08, 2025 4:02 PM I have a 2011 MacBook Pro running OS 10.13. I just bought a Digitrax Evolution Xpresss starter set. I downloaded and successfully installed JMRI and Java 11. DecoderPro won’t open because Java 11 needs to be installed. IT IS INSTALLED. Yes, I turned it off and back on again. I clicked on See More on the popup window and I get instructions for downloading Java 17. I downloaded and successfully installed Java 17. DecoderPro won’t open because Java 11 needs to be installed. The Java 11 and Java 17 installations both installed successfully. What gives? Tracy Reynolds |
On Thu, May 8, 2025 at 06:14 PM, Dave Sand wrote:
A popup window said a JDK needs to be installed. I installed a JAVA 11 JRE from openlogic.com, the only place I could find a Java 11 .pkg. Before I try installing a JDK should I uninstall the Java 11 JRE and Java17 JRE I have installed? Tracy |
I installed a Java 11 JDK from openlogic.com and everything is groovy. The JRE was the problem.
openjdk version "11.0.27" 2025-04-15
OpenJDK Runtime Environment OpenLogic-OpenJDK (build 11.0.27+6-adhoc.admin.jdk11u) OpenJDK 64-Bit Server VM OpenLogic-OpenJDK (build 11.0.27+6-adhoc.admin.jdk11u, mixed mode) Tracy
|
Two questions:
Why *two* versions of Java? Do you have the correct versions for your machine? A 2011 MacBook Pro is a x86_64 system. You want to be sure you have a x86_64 (amd64) version of Java. At Thu, 08 May 2025 14:02:35 -0700 "Tracy Reynolds via groups.io" <threynolds2r[email protected]> wrote: -- Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364 Deepwoods Software -- Custom Software Services -- Linux Administration Services heller@... -- Webhosting Services |
Why two? In some places 11 is recommended (the popup window when DecoderPro won't open) and the JMRI website says to use Java 17. I uninstalled both. They were JRE versions (Java Runtime Environment). JDK is Java Development Kit. I thought all I needed was a runtime environment since I'm not developing a Java program. Once I installed a JDK version of Java 11 everything works.
Tracy
|
On Thu, May 8, 2025 at 08:15 PM, Tracy Reynolds wrote:
All you need is the JRE. I've never installed a JDK in my 22+ years of using JMRI. But the JDK is fine, you just have extra "stuff" that JMRI doesn't need. If it didn't work (as evidenced by your "No Java runtime present, requesting install."), then you didn't have it installed properly.
As for the Java 11 vs Java 17 confusion, 11 is the minimum required for JMRI 5.0 or later, and Java 17 is recommended for JMRI 5.9.1 and newer.
It's all spelled out , including where to get the recommended downloads.
Steve
"Breezlys"
|
I downloaded a Java 11 JRE .pkg and ran it. It completed successfully so I thought Java 11 was installed correctly. Terminal said "no Java found". One of the many error popups I've seen mentioned a JDK was needed. I can start all over again and try a Java 11 JRE. DecoderPro has an error popup that says "Java 11 can't be found". I've used that page you linked to many times and here I am...
Tracy
|
Tracy, I use the Azul.com .dmg. When the DMG is opened, I run the installer. The Java installs are at /Library/Java/JavaVirtualMachines. I recommend that you delete any unused Java installs. You will need to authenticate to do the delete. Dave Sand ----- Original message ----- From: "Tracy Reynolds via groups.io" <threynolds2=[email protected]> Subject: Re: [jmriusers] New to DCC - MacBook Pro Java failure #java #mac-os Date: Friday, May 09, 2025 11:08 AM I downloaded a Java 11 JRE .pkg and ran it. It completed successfully so I thought Java 11 was installed correctly. Terminal said "no Java found". One of the many error popups I've seen mentioned a JDK was needed. I can start all over again and try a Java 11 JRE. DecoderPro has an error popup that says "Java 11 can't be found". I've used that page you linked to many times and here I am... Tracy |
to navigate to use esc to dismiss