Unable to load Java Runtime Environment on M1 iMac running Sonoma 14.4.1

My Java apps were working but were laggy in opening, so I installed the newest update for Java for Apple Silicon. Now I get the error message "Unable to load Java Runtime Environment". I get the following:

java -version

java version "1.8.0_411"

Java(TM) SE Runtime Environment (build 1.8.0_411-b09)

Java HotSpot(TM) 64-Bit Server VM (build 25.411-b09, mixed mode)


and for

javac -version

javac 1.8.0_411


The apps run fine in IntelliJ. They also run fine on my Intel MacBook Pro.


Any suggestions?

Thanks.

iMac (M1, 2021)

Posted on May 8, 2024 3:15 PM

Reply
3 replies

May 8, 2024 7:03 PM in response to lunaai

lunaai wrote:

My Java apps were working but were laggy in opening, so I installed the newest update for Java for Apple Silicon. Now I get the error message "Unable to load Java Runtime Environment". I get the following:
java -version
java version "1.8.0_411"
Java(TM) SE Runtime Environment (build 1.8.0_411-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.411-b09, mixed mode)

and for
javac -version
javac 1.8.0_411

The apps run fine in IntelliJ. They also run fine on my Intel MacBook Pro.

Any suggestions?
Thanks.


See if there is anything here

How to install Java on macOS Sonoma? - Apple Community


May 9, 2024 3:29 PM in response to lunaai

OK, I’ve done some further testing. If I double-click the .app file, I get the error message "Unable to load Java Runtime Environment”. However, if I go to the package contents and open the .jar file (right click and select JavaLauncher.app, it opens fine.


It used to work by double clicking. This happens with both my Java programs. Any suggestions?

Unable to load Java Runtime Environment on M1 iMac running Sonoma 14.4.1

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.