This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes Error compiling a class in JSF Application. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSF
Bookmark "Error compiling a class in JSF Application." Watch "Error compiling a class in JSF Application." New topic

Error compiling a class in JSF Application.

jagan raja
Ranch Hand

Joined: Jan 29, 2010
Posts: 54
Hi All,

I am new to JSF and I am trying to create a simple JSF application.

I have created a UserBean. But when I try to compile it, I get the following error.

src\com\register\ cannot access javax.faces.application.FacesMes
bad class file: C:\Documents and Settings\jagan\JSFReg\web\WEB-INF\lib
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpa
import javax.faces.application.FacesMessage;
1 error

My CLASSPATH is C:\Documents and Settings\My Documents\Downloads\servlet-api-2.5-6.1.4.jar;C:\Documents and Settings\jagan\MyStruts\struts.jar;C:\Documents and Settings\My Documents\Downloads\jarrrrrr\sqlitejdbc-v056.jar;C:\Documents and Settings\jagan\JSFReg\web\WEB-INF\lib\jstl.jar;C:\Documents and Settings\jagan\JSFReg\web\WEB-INF\lib\standard.jar;C:\Documents and Settings\jagan\JSFReg\web\WEB-INF\lib\jsf-impl.jar;C:\Documents and Settings\jagan\JSFReg\web\WEB-INF\lib\jsf-api.jar;

My PATH is C:\Program Files\j2sdk1.4.2_02\bin

My JAVA_HOME is C:\Program Files\Java\jre1.6.0_04

I faced similar kind of problem while trying to deploy my servlet application. I simply changed the servlet-api jar and it works fine.

Can any one say where I have gone wrong?

Thanks in advance!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Error compiling a class in JSF Application.
jQuery in Action, 3rd edition