I tried to build a jar file using java 1.5. I use eclise and I specified the java version as 1.5 in below areas.
- Project -> Properties -> Java Compiler
- Project -> Java Build Path -> JRE System Library
- Ant Build File -> Run As -> ExternalToolConfiguration -> JRE
But after the jar is built all the classes were built in 1.7 (major version 51) I want them in 1.5.(49)
This is the result for javap -verbose MyClassInBuiltJar
SourceFile: "Program.java"
minor version: 0
major version: 51
Constant pool: