org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file C:\Tomcat 4.1\work\Standalone\localhost\juddi\happyjuddi_jsp.java:7: cannot access java.io.File bad class file: C:\j2sdk1.4.1_06\jre\lib\rt.jar(java/io/File.class) class file has wrong version 48.0, should be 47.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import java.io.File; ^ 1 error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via ws-juddi-user by Delphine Dumontet, 1 year ago
class file: C:\j2sdk1.4.1_06\jre\lib\rt.jar(java/io/File.class) class file has wrong version 48.0, should be 47.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import java.io.File; ^ 1 error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93)
via ws-juddi-user by Ilias Stergiou, 1 year ago
Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file C:\Tomcat 4.1\work\Standalone\localhost\juddi\happyjuddi_jsp.java:7: >cannot access java.io.File
via Google Groups by Freddy Simonis, 1 month ago
Unable to compile class for JSP > > An error occurred at line: -1 in the jsp file: null > > Generated servlet error: > [javac] Compiling 1 source file > > at > org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle > r.java:130) > at > org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 > 93)
via Java.net JIRA by lidiam, 1 year ago
PWC6033: Unable to compile class for JSP PWC6197: An error occurred at line: 10 in the jsp file: /addremove/basic.jsp PWC6199: Generated servlet error: string:///basic_jsp.java:183: cannot find symbol symbol : method setJspId(java.lang.String
via Java.net JIRA by lidiam, 1 year ago
PWC6033: Unable to compile class for JSP PWC6197: An error occurred at line: 10 in the jsp file: /addremove/basic.jsp PWC6199: Generated servlet error: string:///basic_jsp.java:183: cannot find symbol symbol : method setJspId(java.lang.String
via nabble.com by Unknown author, 2 years ago
PWC6033: Error in Javac compilation > for JSP > > PWC6199: Generated servlet error: > string:///index_jsp.java:3: package javax.servlet does not exist > > PWC6199: Generated servlet error: > string:///index_jsp.java:4: package javax.servlet.http
org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file C:\Tomcat 4.1\work\Standalone\localhost\juddi\happyjuddi_jsp.java:7: cannot access java.io.File bad class file: C:\j2sdk1.4.1_06\jre\lib\rt.jar(java/io/File.class) class file has wrong version 48.0, should be 47.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import java.io.File; ^ 1 error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.