matb Posted July 24, 2015 Posted July 24, 2015 Good Afternoon,I am compiling my project under Ant and Java 8 but with the javac source and target set to 7 (i.e. I want to be able to run under Java 7 and above).It looks like the JRAntCompileTask though is just picking up that I am compiling under Java 8 and, as there isn't a source and target option (even though javadoc says "Works like the built-in javac Ant task."), it compiles the reports under Java 8. So I am therefore forced to use a runtime of Java 8. Running under Java 7 will throw up JRClassLoader and the calssic "Unsupported major.minor version 52.0".The workaround is to just compile under Java 7 (or rejig JRAntCompileTask) as that is all I am targeting but would rather compile under Java 8 and set the target and source as 7.In short, has anyone come across and/or got around this issue? CheersMat
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now