This is a common thing that will miss at most of the times. We must consider all of these build paths while using eclips.

1. This is the Java Build Path

1.BuildPath-Libraries

2

2. This is the Java Compiler

3

3. This is the ANT – External Tool Configuration

4

5

4.This is the Maven Run Configuration

6

7

You can easily check the java version of a class file by using

WINDOWS > javap -verbose TraceLogger | find "version"

LINUX > javap -verbose TraceLogger | grep version

javap -verbose TraceLogger will out put all details with the versions Java versions:

  • Java 1.2 uses major version 46
  • Java 1.3 uses major version 47
  • Java 1.4 uses major version 48
  • Java 5 uses major version 49
  • Java 6 uses major version 50
  • Java 7 uses major version 51
Advertisements