Java & Logisim

Logisim is not working after Catalina update. To open “Logisim” you need to install the legacy Java SE 6 runtime.

Java is not showing on the System Preference. But in terminal it showing I have java 13.

MacBook Pro 13", macOS 10.15

Posted on Dec 16, 2019 1:39 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 16, 2019 3:57 AM

According to https://java.com/en/download/faq/java_mac.xml , Java 6 has been disabled by Apple on MacOS. You should probably try Java 7 from the java.com or oracle.com sites.


To select another version of Java, you have to set environmental variables


JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home"

JRE_HOME=$JAVA_HOME/jre

JDK_HOME=$JAVA_HOME

export JRE_HOME

export JDK_HOME

export JAVA_HOME


After running these statements


BradleyRossMacBook:~ bradleyross$ java -version

java version "1.8.0_121"

Java(TM) SE Runtime Environment (build 1.8.0_121-b13)

Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)





7 replies
Question marked as Top-ranking reply

Dec 16, 2019 3:57 AM in response to Athrap

According to https://java.com/en/download/faq/java_mac.xml , Java 6 has been disabled by Apple on MacOS. You should probably try Java 7 from the java.com or oracle.com sites.


To select another version of Java, you have to set environmental variables


JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home"

JRE_HOME=$JAVA_HOME/jre

JDK_HOME=$JAVA_HOME

export JRE_HOME

export JDK_HOME

export JAVA_HOME


After running these statements


BradleyRossMacBook:~ bradleyross$ java -version

java version "1.8.0_121"

Java(TM) SE Runtime Environment (build 1.8.0_121-b13)

Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)





Dec 18, 2019 11:57 AM in response to Bradley Ross

I couldn't upload anything so I'm trying to figure out how to upload the files. The additional text option didn't work.


All of the JDK libraries are contained as subdirectories in the directory /Library/Java/JavaVirtualMachines and have the suffix jdk. Although Java 6 is no longer available (it has actually been blocked by the MacOS operating system because of security bugs and some other problems), Java 8 should work as the big changes came with version 9.


see Mac Java installation instructions

Download the JDK from https://www.oracle.com/technetwork/java/javase/downloads/index.html. This will download a dmg file which will mount a virtual device on your system when double-clicked. There is a package file (pkg) file in the virtual device that you can double-click and it will place the appropriate JDK in the JavaVirtualMachines subdirectory.


I had to copy and paste the following files as the "Add text" option didn't seem to work. I realize that this put blank lines after each actual line. However, I'm assuming that the script should work if you cut and paste it into your terminal. Running the script will go through each of the versions of the Java virtual machines, set the environmental variables accordingly. This script will also remove previous referenced JDK versions from the PATH environmental variable and add the appropriate version.

Dec 18, 2019 12:03 PM in response to VikingOSX

All of the JDK libraries are contained as subdirectories in the directory /Library/Java/JavaVirtualMachines and have the suffix jdk. Although Java 6 is no longer available (it has actually been blocked by the MacOS operating system because of security bugs and some other problems), Java 8 should work as the big changes came with version 9.


see Mac Java installation instructions

Download the JDK from https://www.oracle.com/technetwork/java/javase/downloads/index.html. This will download a dmg file which will mount a virtual device on your system when double-clicked. There is a package file (pkg) file in the virtual device that you can double-click and it will place the appropriate JDK in the JavaVirtualMachines subdirectory.


I had to copy and paste the following files as the "Additional text" option didn't seem to work. I realize that this put blank lines after each actual line. However, I'm assuming that the script should work if you cut and paste it into your terminal. Running the script will go through each of the versions of the Java virtual machines, set the environmental variables accordingly. This script will also remove previous referenced JDK versions from the PATH environmental variable and add the appropriate version.


I went through the whole procedure again. You may have to remove blank and extraneous lines from the script but it seems to have worked.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Java & Logisim

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