In WL 12.1, Using Java 7, No Way To Config Source And Target JAVA Versions For JSP Compilation
(Doc ID 1957542.1)
Last updated on NOVEMBER 28, 2017
Applies to:Oracle WebLogic Server - Version 188.8.131.52 to 184.108.40.206.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.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!