• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error compiling a class in JSF Application.

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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\UserBean.java:5: cannot access javax.faces.application.FacesMes
sage
bad class file: C:\Documents and Settings\jagan\JSFReg\web\WEB-INF\lib
\jsf-api.jar(javax/faces/application/FacesMessage.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 classpa
th.
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'm thinking about a new battle cry. Maybe "Not in the face! Not in the face!" Any thoughts tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic