My Oracle Support Banner

How to Compile a JSP with Java 7 Specific Code in it? (Doc ID 1595074.1)

Last updated on APRIL 06, 2018

Applies to:

Oracle Weblogic Server - Version and later
Information in this document applies to any platform.


How to compile a JSP which has Java 7 specific code in it?


public class MyComparator implements java.util.Comparator {

    public int compare(String o1, String o2) {
        return 0;




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.