cancel
Showing results for 
Search instead for 
Did you mean: 

Error deploying webdynpro application - Bad version number in .class

Former Member
0 Kudos

Hi,

I ve intstalled SAP NetWeaver 7.1 Composition Environment.But when i deployed a sample application given in NWDS.

Im getting the following error:

java.lang.UnsupportedClassVersionError: Bad version number in .class file

What could be the possibel reason for this error?

I have the server installed as a local host. How do i set the preferences for the SAP J2EE engine in the NWDS?

Regards,

Padmalatha.K

Points will be rewarded.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

I checked the Compiler Compliance Level. It is set to 6.0 by default.

I deselected the Use Default Compliance Settings and set the Generated .class files compatibilty and Source Compatibility to 6.0.

Even after that, iam getting the same error.

Regards,

Padmalatha.K

0 Kudos

Hi All,

I also faced the same problem and even after changing the compliance level to 5.0 it did not get solved.

But finally I after changing the JDK path which the eclipse would use to start it worked.

The path can be changed in the SapNetweaverDeveloperStudio.ini file in NWDS CE which resides in the home eclipse folder.

Regards,

Ameya

Former Member
0 Kudos

Hi,

Iam using JDK 1.6.

Regards,

Padmalatha.K

Former Member
0 Kudos

Hi,

Give a try by

Go to Window->Preferences->Java->Compiler->

Set the compiler complience level to 1.6

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

Do i need to add JDK 1.5 only? We have added JDK 1.6. Is this version of JDK compatible with NWDS?

Regards,

Padmalatha.K

Former Member
0 Kudos

wat s the JDK version u r using?

Former Member
0 Kudos

Hi,

Go to Window->Preferences->Java->Installed JREs and and the Jdk 1.5 version.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi ..

This is becaus u r having different JDK versions installed.

Go to windows->preferences->SAP j2ee engine->Messa host , port( u r server information)

GS