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 MAY 30, 2024
Applies to:
Oracle WebLogic Server - Version 12.1.1.0 to 12.1.2.0.0 [Release 12c]Information in this document applies to any platform.
Goal
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 <Document 1501536.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.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
References |