-
Bug
-
Resolution: Incomplete
-
P3
-
None
-
7u76
-
x86
-
windows_7
FULL PRODUCT VERSION :
JDK 1.7 Update 75
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
Hi Oracle,
My JSP application is working fine in JAVA 6 while is not working and giving following error in JRE 1.7
I am using TOMCAT Apache 3.2.4 for rendering the JSP pages.
Following is the Error I am getting with JRE 1.7:
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/PrintWriter.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:7: Class java.io.PrintWriter not found in import.
import java.io.PrintWriter;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/IOException.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:8: Class java.io.IOException not found in import.
import java.io.IOException;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/FileInputStream.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:9: Class java.io.FileInputStream not found in import.
import java.io.FileInputStream;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/ObjectInputStream.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:10: Class java.io.ObjectInputStream not found in import.
import java.io.ObjectInputStream;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/util/Vector.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:11: Class java.util.Vector not found in import.
import java.util.Vector;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/util/Calendar.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:21: Class java.util.Calendar not found in import.
import java.util.Calendar;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/lang/Object.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:0: Class java.lang.Object not found in class javax.servlet.GenericServlet.
package order;
Please help .
Thanks & best regards,
Jitendra
REGRESSION. Last worked in version 7u76
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
I will try to assist you to reproduce if required.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No error.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/PrintWriter.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:7: Class java.io.PrintWriter not found in import.
import java.io.PrintWriter;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/IOException.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:8: Class java.io.IOException not found in import.
import java.io.IOException;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/FileInputStream.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:9: Class java.io.FileInputStream not found in import.
import java.io.FileInputStream;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/ObjectInputStream.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:10: Class java.io.ObjectInputStream not found in import.
import java.io.ObjectInputStream;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/util/Vector.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:11: Class java.util.Vector not found in import.
import java.util.Vector;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/util/Calendar.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:21: Class java.util.Calendar not found in import.
import java.util.Calendar;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/lang/Object.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:0: Class java.lang.Object not found in class javax.servlet.GenericServlet.
package order;
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Will assist you if required.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
use lower version of JAVA i.e. JRE 1.6
JDK 1.7 Update 75
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
Hi Oracle,
My JSP application is working fine in JAVA 6 while is not working and giving following error in JRE 1.7
I am using TOMCAT Apache 3.2.4 for rendering the JSP pages.
Following is the Error I am getting with JRE 1.7:
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/PrintWriter.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:7: Class java.io.PrintWriter not found in import.
import java.io.PrintWriter;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/IOException.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:8: Class java.io.IOException not found in import.
import java.io.IOException;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/FileInputStream.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:9: Class java.io.FileInputStream not found in import.
import java.io.FileInputStream;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/ObjectInputStream.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:10: Class java.io.ObjectInputStream not found in import.
import java.io.ObjectInputStream;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/util/Vector.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:11: Class java.util.Vector not found in import.
import java.util.Vector;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/util/Calendar.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:21: Class java.util.Calendar not found in import.
import java.util.Calendar;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/lang/Object.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:0: Class java.lang.Object not found in class javax.servlet.GenericServlet.
package order;
Please help .
Thanks & best regards,
Jitendra
REGRESSION. Last worked in version 7u76
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
I will try to assist you to reproduce if required.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No error.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/PrintWriter.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:7: Class java.io.PrintWriter not found in import.
import java.io.PrintWriter;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/IOException.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:8: Class java.io.IOException not found in import.
import java.io.IOException;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/FileInputStream.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:9: Class java.io.FileInputStream not found in import.
import java.io.FileInputStream;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/io/ObjectInputStream.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:10: Class java.io.ObjectInputStream not found in import.
import java.io.ObjectInputStream;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/util/Vector.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:11: Class java.util.Vector not found in import.
import java.util.Vector;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/util/Calendar.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:21: Class java.util.Calendar not found in import.
import java.util.Calendar;
^
error: Invalid class file format in C:\1.MyLibraries\Temp\NVWML\Java\Java\jre7\lib\rt.jar(java/lang/Object.class). The major.minor version '51.0' is too recent for this tool to understand.
C:\1.MyLibraries\Temp\NVWML\SAP Mobile Infrastructure\work\localhost_8080%2FBDI\_0002forder_0002fz_0005forder_0005fdetail_0002ejspz_0005forder_0005fdetail_jsp_0.java:0: Class java.lang.Object not found in class javax.servlet.GenericServlet.
package order;
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Will assist you if required.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
use lower version of JAVA i.e. JRE 1.6