dcsimg
while deploying in jboss getting Unsupported major.minor version 49.0
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   suc_Jag
Posted On:   Tuesday, May 15, 2007 02:04 AM

Hi while deploying web app in elipse on jboss server getting Unsupported major.minor version 49.0 error. . I have checked all jdk/jre versions in elipse and confirmed that every version is 1.4. But still getting the same error. What i have checked in eclipse ide is 1] windows --> preferences -->servers -->jboss 4-->jdk -->j2se1.4. 2] right click on prject --> properties --> java compiler --> all are having 1.4. 3]windows --> preferences -->installed jres -->j2se1.4 I have deleted the war and redeployed. myeclipse version : 5.1 jboss version:4 tomcat version :5 I know   More>>

Hi


while deploying web app in elipse on jboss server getting Unsupported major.minor version 49.0 error. . I have checked all jdk/jre versions in elipse and confirmed that every version is 1.4.


But still getting the same error.

What i have checked in eclipse ide is

1] windows --> preferences -->servers -->jboss 4-->jdk -->j2se1.4.

2] right click on prject --> properties --> java compiler --> all are having 1.4.

3]windows --> preferences -->installed jres -->j2se1.4


I have deleted the war and redeployed.

myeclipse version : 5.1

jboss version:4

tomcat version :5



I know that above error comes when application is compiled with one version and deployment (jboss) is using higher version of jdk.

Can anybody help me to solve this problem. where to fix this version compatibility.


Thanks in advance.

   <<Less

Re: while deploying in jboss getting Unsupported major.minor version 49.0

Posted By:   Anonymous  
Posted On:   Sunday, June 17, 2007 06:10 AM

Please have the follow check:

Windows --> preferences --> Java --> Compiler --> JDK Compliance --> Compiler compliance level:
If it is 5.0, change it to 1.4. It seems that Eclipse will set some information to the class file according to this attribute setting. And the 5.0 makes every compiled class file attached the JDK 1.5 symbol. that's why the "Unsupported major.minor version 49.0" problem accurs.

Good luck!
About | Sitemap | Contact