In WL 12.1, Using Java 7, No Way To Config Source And Target JAVA Versions For JSP Compilation
Last updated on JUNE 09, 2016
Applies to:Oracle WebLogic Server - Version 126.96.36.199 to 188.8.131.52.0 [Release 12c]
Information in this document applies to any platform.
Trying to compile JSPs with JDK 1.7 and deploying it wls server getting many errors, such as @Override on an interface method being not allowed.
We found and tried changing our configuration per KM Note1501536.1
This is apparently hardcoding the target java version to 1.6, and we get many of the following error throughout compilation, resulting in failures in compilation: javacTask: target release 1.6 conflicts with default source release 1.7
It appears that there needs to be some way to indicate to the javac compiler (e.g., the call to the ant api internally) to use source=1.7 and target=1.7, perhaps in another JAVA_OPTION, such as -Dweblogic.jsp.javacompiler.javac.target=1.7 -Dweblogic.jsp.javacompiler.javac.source=1.7 doest not work.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms