Snippets tagged “java-home”
12 snippets use this tag.
- Android SDK installation doesn't find JDKJava
If the Android SDK installation is unable to find the JDK (Java Development Kit), it could be because the JDK is not installed or is not installed in the default location.
- Eclipse reported "Failed to load JNI shared library"Java
If you see the error "Failed to load JNI shared library" when starting Eclipse, it means that the Java Native Interface (JNI) library required by Eclipse cannot be found or loaded.
- eclipse won't start - no java virtual machine was foundJava
There are a few possible reasons why Eclipse might not be able to find a Java Virtual Machine (JVM).
- Error:java: javacTask: source release 8 requires target release 1.8Java
This error message usually indicates that you are trying to compile your Java code with a version of the javac compiler that is not compatible with the version of the Java language that your code is written in.
- Failed to load the JNI shared Library (JDK)Java
This error can occur when you are trying to run a Java program and the Java Virtual Machine (JVM) cannot find the required shared libraries. There are a few different causes of this error and a few different things you can try to fix it:
- How do I find where JDK is installed on my windows machine?Java
To find where the JDK is installed on your Windows machine, you can follow these steps:<br>
- How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor versionJava
The java.lang.UnsupportedClassVersionError error is usually caused by trying to run a Java class that was compiled with a newer version of the Java compiler than the version of the JRE (Java Runtime Environment) that you are using.
- How to install Java 8 on MacJava
To install Java 8 on macOS, follow these steps:
- How to set or change the default Java (JDK) version on macOS?Java
To set the default Java (JDK) version on macOS, you can use the java_home command line tool. Here's how:
- What is path of JDK on Mac ?Java
On macOS, the path of the JDK (Java Development Kit) is typically /Library/Java/JavaVirtualMachines/jdk<version>.jdk/Contents/Home, where <version> is the version of the JDK.
- Where is Java Installed on Mac OS X?Java
On Mac OS X, the default location for the JDK (Java Development Kit) is /Library/Java/JavaVirtualMachines/jdk&lt;version&gt;.jdk/Contents/Home/, where &lt;version&gt; is the version number of the JDK you have installed.
- Where is JAVA_HOME on macOS Mojave (10.14) to Lion (10.7)?Java
On macOS, the JAVA_HOME environment variable is typically set in the /etc/launchd.conf file.