Tag Archives: Java

Ant Errors: “Perhaps JAVA_HOME does not point to the JDK”

In this case, I was working on a Linux environment (RHEL Server 6.2) which had previously been using the OpenJDK version of Java. For dev purposes, I was required to remove OpenJDK and install an IBM JDK instead. After this, … Continue reading

Posted in Code Monkey | Tagged , , , | Leave a comment

Ant Errors: “Error starting modern compiler”

In my case, this error appeared when I attempted to run an Ant script through Eclipse, that was designed to compile Java classes and package them into a ZIP file. BUILD FAILED %my XML file%: Error starting modern compiler This … Continue reading

Posted in Code Monkey | Tagged , , , , | 20 Comments

Java Errors: “UnsupportedClassVersionError…bad major version at offset=x”

In my case, this error appeared when I attempted to load a class from a batch file in the Windows command prompt. “Caused by: java.lang.UnsupportedClassVersionError: (*myclassname*) bad major version at offset=6” This error indicates that your projects were compiled with … Continue reading

Posted in Code Monkey | Tagged , , , | 11 Comments