My Oracle Support Banner

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, 2023

Applies to:

Oracle WebLogic Server - Version to [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 <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.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!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.