cancel
Showing results for 
Search instead for 
Did you mean: 

UnsupportedClassVersionError Exception

Former Member
0 Kudos

Hi,

i 've created a java class using NetBean IDE 5.0 and used its jar in Webdynpro perspective. while running i got the following exception.

java.lang.UnsupportedClassVersionError: pack/execute (Unsupported major.minor version 49.0)

JDK version installed in my system is jdk1.5.0_14

Suggestions please...

Thanks,

RPN.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

required JDK for the NetBeans IDE and the profiler is JDK 1.5 and newer, see the Release Notes at

http://www.netbeans.org/community/releases/65/relnotes.html#req_sw. Also, the Attach Wizard which

generated the remote pack forced you to select JDK 1.5 and up.

Former Member
0 Kudos

i couldnt get your suggestion.......

can you please explain me in detail..........

Thanks,

RPN

Former Member
0 Kudos

Hi,

Are you trying to run this application on Netweaver WAS?

Regards

Ayyapparaj

Former Member
0 Kudos

yes... am running in NWDS 7.0.15

Thanks,

RPN

Former Member
0 Kudos

Hi,

Which is the root cause of this error:

NWDS or the server...

NWDS is installed in a local machine which is connected to the server...

Please suggest a solution...

Thanks,

RPN

Former Member
0 Kudos

Hi,

I hope you might have migrated your application to NWDS. After this did you compile your application?

Was their any errors?

Did you tried to build the same here?

Was that succeeded?

Do you have an ear or sca build for this?

How did you deploy this to the server?

What is the version oj java used by NWDS and WAS? Are they compatible?

Regards

Ayyapparaj

Former Member
0 Kudos

Thanks a lot..

NWDS is running on 1.5

WAS is running on 1.4

RPN.

Former Member
0 Kudos

Hi,

Answer is there in your post "NWDS is running on 1.5

WAS is running on 1.4"

You need to recompile using 1.4 and redeploy to the was.

Regards

Ayyapparaj

chander_kararia4
Contributor
0 Kudos

Hi RPN,

The above given sol is correct.

U need to recompile using 1.4 & again deploy the application freshly. That shall work. Thanks.

Regards

Chander Kararia

Edited by: Chander Kararia on Feb 5, 2009 10:34 AM

Answers (2)

Answers (2)

chander_kararia4
Contributor
0 Kudos

Hi RPN,

Just clean up all different java-Installations and additionally setting USER-Environment-Variable JAVA_HOME

Work with J2sdk1.4 version.

Hope this will help you.

Regards

Chander Kararia

Edited by: Chander Kararia on Feb 2, 2009 5:13 PM

Former Member
0 Kudos

Thanks a lot...

I have tried with jdk1.4. but still am facing the same problem...

which version of jdk should i use in NetBean IDE?

Thanks,

RPN

chander_kararia4
Contributor
0 Kudos

Hi RPN,

Please do this:

Start the command prompt. type the following command: java -version

Note down the version it shows.

-


Now, on the command prompt, set the path to the bin folder of your j2sdk.

(Probably, c:\ j2sdkXXXX \ bin , XXXX -> is the version of yours)

then type the same command: java -version.

-


Let me the know BOTH the result.

Regards

Chander Kararia

Former Member
0 Kudos

thanks Chander...

i 've checked the java version before and after setting the path. it is jdk1.5.0_09.

but i 've changed the Installed JREs to 1.5.0_14 in NWDS..

Thanks,

RPN.

chander_kararia4
Contributor
0 Kudos

Hi

So you have not tried it with jdk1.4 version. make sure you have jdk & not jre.

Now try this, it shall help you.

- Go to "My Computer" -> Properties

- Click the "Advanced" tab then go to "Environment Variables"

- Under "System Variables" click "New"

- In the new box enter JAVA_HOME for the name

- Enter the path to the JDK installation folder in the value field then click ok

Next:

- Under "System Variables" look for the entry "Path"

- Select it, then add the following separated by a semi-colon (

Also, change the order of your path to:

"C:\Program Files\Java\jdk1.5.0_07\bin";"C:\Program Files\Java\jdk1.5.0_07\lib\tools.jar";exiting_path

    • Change the path & version as per you. I suggest, try with both.

Regards

Chander Kararia

Former Member
0 Kudos

i 've made the changes which you 've mentioned. but still i am facing the same exception.

help me me on this..

Please let me know whether this is possible or not....

Thanks,

RPN

Edited by: RPN on Feb 3, 2009 12:05 PM

Former Member
0 Kudos

Hi,

The similar exception is sorted out at the following links:

/message/244199#244199 [original link is broken]

https://www.sdn.sap.com/irj/scn/wiki?path=/display/java/netweaver%252bdeveloper%252bstudio%252b(NWDS...

Regards.

Rajat