![]() ![]() ![]() # alternatives -install /usr/bin/javac javac /opt/jdk1.8.0_51/bin/javac 2 We also recommend to setup javac and jar commands path using alternatives: # alternatives -install /usr/bin/jar jar /opt/jdk1.8.0_51/bin/jar 2 # alternatives -install /usr/bin/java java /opt/jdk1.8.0_51/bin/java 2Īt this point Java 8 has been successfully installed on your system. The alternatives command is available in the chkconfig package. Install Java with alternativesĪfter extracting the archive file, use the alternatives command to install it. Note: If the above wget command doesn’t not work for you, watch this example video to download the Java source archive using the terminal. # wget -no-cookies -no-check-certificate -header "Cookie: gpw_e24=http%3A%2F%2Foraclelicense=accept-securebackup-cookie" "" Download latest Java archive Download latest Java SE Development Kit 8 release from its official download page or use following commands to download from the shell. You need to upgrade your Java version to Java 8. Go to: /Applications/IntelliJ\ IDEA\ 15\ CE.app/Contents/istĪnd replace the JVM version with: JVMVersion Make sure the JDK home path is set to 1.8.Īnother approach which might help is by instructing IntelliJ IDEA which JDK version to start up with. Go to menu File* → Project Structure → SDKs.Go to Maven Settings → Maven → Runner. ![]() Go to Maven Settings → Maven → Importing.To solve this, it's always better to have the JDK and JRE pointed to the same version. The reported number is the required number, not the number you are using. Thus, the 'major.minor version 52.0' error is possibly because the jar was compiled in JDK 1.8, but you are trying to run it using a JDK 1.7 environment. The error regarding the unsupported major.minor version is because during compile time you are using a higher JDK and a lower JDK during runtime. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |