Most certainly, export JAVA_HOME=/usr/bin/java
is the culprit. This env var should point to the JDK or JRE installation directory. Googling shows that the best option for MacOS X seems to be export JAVA_HOME=/Library/Java/Home
.
Related Contents:
- How to install Java 8 on Mac
- How to set or change the default Java (JDK) version on macOS?
- Why does array[idx++]+=”a” increase idx once in Java 8 but twice in Java 9 and 10?
- How do I install Java on Mac OSX allowing version switching?
- Error:java: invalid source release: 8 in Intellij. What does it mean?
- Installed Java 7 on Mac OS X but Terminal is still using version 6
- How to increase IDE memory limit in IntelliJ IDEA on Mac?
- Intellij Idea: Importing Gradle project – getting JAVA_HOME not defined yet
- Installing Java on OS X 10.9 (Mavericks)
- javac is not recognized as an internal or external command, operable program or batch file [closed]
- How to set JAVA_HOME environment variable on Mac OS X 10.9?
- Java/JDK for the Apple Silicon chips
- Why does a Java class compile differently with a blank line?
- What is the difference between javac and the Eclipse compiler?
- Access restriction: The type ‘Application’ is not API (restriction on required library rt.jar)
- Why Maven uses JDK 1.6 but my java -version is 1.7
- javac option to compile all java files under a given directory recursively
- How to tell if JRE or JDK is installed
- How to run Gradle from the command line on Mac bash
- javac error: Class names are only accepted if annotation processing is explicitly requested
- How can I change Mac OS’s default Java VM returned from /usr/libexec/java_home
- What is the –release flag in the Java 9 compiler?
- Maven Installation OSX Error Unsupported major.minor version 51.0
- How do I compile and run a program in Java on my Mac?
- How to set JAVA_HOME in Mac permanently?
- Spark Error – Unsupported class file major version
- How to reliably guess the encoding between MacRoman, CP1252, Latin1, UTF-8, and ASCII
- Is the creation of Java class files deterministic?
- Java: How can I compile an entire directory structure of code ?
- Maven 3.3.1 ECLIPSE: -Dmaven.multiModuleProjectDirectory system propery is not set
- How to brew install java?
- How do I run IDEA IntelliJ on Mac OS X with JDK 7?
- Unable to install java8 with homebrew
- Optimization by Java Compiler
- Determining the version of Java SDK on the Mac
- javac command line compile error: package javax.servlet does not exist
- Where did jvisualvm go?
- Stop Java Coffee Cup icon from appearing in the Dock on Mac OSX
- In Java 8, why were Arrays not given the forEach method of Iterable?
- Difference in behaviour of the ternary operator on JDK8 and JDK10
- is it possible to disable javac’s inlining of static final variables?
- Gradle home cannot be found on Mac
- Change Jenkins port on macOS
- Why does the Java compiler 11 use invokevirtual to call private methods?
- Why does javac allow some impossible casts and not others?
- What is sjavac, who is it for and how do I use it?
- CGContextSetBaseCTM invalid context 0x0
- Why does this small Java program make MacOS restart?
- Where is Oracle’s (Sun’s) JDK/JRE installed on Mac OS X 10.8 Mountain Lion?
- Assertion not working