![eclipse on mac looking for wrong java version eclipse on mac looking for wrong java version](https://i.ytimg.com/vi/9NnxtAX1ROA/maxresdefault.jpg)
- #ECLIPSE ON MAC LOOKING FOR WRONG JAVA VERSION CODE#
- #ECLIPSE ON MAC LOOKING FOR WRONG JAVA VERSION LICENSE#
The addition of entries to the PATH environment variable could result in altering the search classpath behavior of Ant, possibly resulting in a different tools.jar being used for the purpose of compiling the sources. If the JAVA_HOME environment variable has been set incorrectly, say to a Java 1.4 home, then there is a likelihood of getting the described error even in Eclipse. JDK home).Īnt tends to look for the javac executable in the $JAVA_HOME/bin/javac. It appears that the compiler is a Java 1.4 compiler, so you should attempt to verify whether you're using the right version of the Java compiler and also the right JDK (i.e. The classfile structure had changed in 1.5 due to the introduction of several new features and changes made in the Java Language Specification.įrom the error, one can deduce that a Java 1.4 classfile was expected, whereas a Java 1.5 classfile was found. The class file version of 49.0 belongs to Java 1.5.x, whereas the one of 48.0 belongs to one of the Java 1.4.x version. Please remove or make sure it appears in the correct subdirectory of the classpath. Select the file according to your operating system from the list below to get the latest Java for your computer.
#ECLIPSE ON MAC LOOKING FOR WRONG JAVA VERSION LICENSE#
Oracle also provides the latest OpenJDK release under the open source GPL License at. class file has wrong version 49.0, should be 48.0 Commercial license and support is available with a low cost Java SE Subscription. bad class file: C:\Program Files\Java\jre1.6.0_07\lib\rt.jar(java/io/IOException.class) So far, this is not a unique issue, but none of the steps I tried from. H:\MYCOMPANY\portlets\src\com\mycompany\portlets\CourseList.java:3: cannot access java.io.IOException Errors running builder 'Java Builder' on project 'HelloWorld'.
![eclipse on mac looking for wrong java version eclipse on mac looking for wrong java version](https://www.itmanagement101.co.uk/wp-content/Screen-Shot-2015-04-25-at-11.27.05.png)
Compiling 3 source files to H:\MYCOMPANY\portlets\build When I compile ( using Ant ) I get an error message: compile: This is what the compile section of my ant file:
![eclipse on mac looking for wrong java version eclipse on mac looking for wrong java version](https://i.ytimg.com/vi/UauXLwYlOkE/hqdefault.jpg)
Eclipse has been giving me a lot of trouble lately.
#ECLIPSE ON MAC LOOKING FOR WRONG JAVA VERSION CODE#
I am trying to compile code checked out of SVN from another developer.