Barry Cunney
asked on
Bad Class File Error
Hi Guys,
I am getting the following error :
An error occurred at line: 7 in the jsp file: /test1.jsp
Generated servlet error:
bad class file: C:\Student\Assignment2\WEB -INF\class es\ie\nci\ Accommodat ion\DBBase .class
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
AccommodationSampleHelper helper = new AccommodationSampleHelper( );
^
1 error
when trying to run the below jsp file code:
%@page contentType="text/html"%>
<%@page import="ie.nci.Accommodati on.*"%>
<html>
<head><title>JSP Page</title></head>
<body>
<table>
<%
AccommodationSampleHelper helper = new AccommodationSampleHelper( );
AccommodationSample[] accommodationSamples = helper.getAllAccommodation Sample() ;
for (int i = 0 ; i < accomodationSamples.length ; i ++)
{
out.print("<TR>");
out.print("<TD>" + accomodationSamples[i].get PaymentTyp e() + "</TD>");
out.print("<TD>" + accomodationSamples[i].get Descriptio n() + "</TD>");
}
%>
</table>
</body>
</html>
Any advice appreciated
I am getting the following error :
An error occurred at line: 7 in the jsp file: /test1.jsp
Generated servlet error:
bad class file: C:\Student\Assignment2\WEB
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
AccommodationSampleHelper helper = new AccommodationSampleHelper(
^
1 error
when trying to run the below jsp file code:
%@page contentType="text/html"%>
<%@page import="ie.nci.Accommodati
<html>
<head><title>JSP Page</title></head>
<body>
<table>
<%
AccommodationSampleHelper helper = new AccommodationSampleHelper(
AccommodationSample[] accommodationSamples = helper.getAllAccommodation
for (int i = 0 ; i < accomodationSamples.length
{
out.print("<TR>");
out.print("<TD>" + accomodationSamples[i].get
out.print("<TD>" + accomodationSamples[i].get
}
%>
</table>
</body>
</html>
Any advice appreciated
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
r u using IDE like Eclipse, NetBeans etc....
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.