In WL 12.1, Using Java 7, No Way To Config Source And Target JAVA Versions For JSP Compilation
Last updated on NOVEMBER 28, 2017
Applies to:Oracle WebLogic Server - Version 18.104.22.168 to 22.214.171.124.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
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms