dcsimg
Bad version number in .class file
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sender_jones
Posted On:   Friday, November 2, 2007 05:16 AM

I have a jsp with this <%@ page import="pp.MyBean" %> class="pp.MyBean" scope="session" /> <% MyBean.start(s); ..... MyBean has something like this public class MyBean { BufferedReader in; public void start(String page) { ...... I compile the bean using jre 1.6.0_02 and run it in 1.6.0 with tomcat. However, when calling the jsp with browser, it alway have exception javax.servlet.ServletException: Bad version number in .class file Any idea what is wrong?    More>>

I have a jsp with this

			
<%@ page import="pp.MyBean" %>

class="pp.MyBean"
scope="session" />
<%
MyBean.start(s);
.....

MyBean has something like this
			
public class MyBean {

BufferedReader in;

public void start(String page) {
......

I compile the bean using jre 1.6.0_02 and run it in 1.6.0 with tomcat. However, when calling the jsp with browser, it alway have exception
			
javax.servlet.ServletException: Bad version number in .class file

Any idea what is wrong?    <<Less
About | Sitemap | Contact