File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes WSAD 5.1.2...Going Crazy!!!  java.lang.Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "WSAD 5.1.2...Going Crazy!!!  java.lang.Object" Watch "WSAD 5.1.2...Going Crazy!!!  java.lang.Object" New topic

WSAD 5.1.2...Going Crazy!!! java.lang.Object

Bob Pfingsten

Joined: Jun 08, 2006
Posts: 2
Hope someone can help...

We are moving our code base from WAS4 to WAS6 but will be developing in WSAD 5.1.2 vs RAD 6 (don't ask).

I have targeted my projects (WEB and EJB) to WAS 5.1.

Modified my WSAD startup to include the newer (1.4.1) VM (-vm "runtimes\base_v51\java\jre\bin\java.exe").

I have changed my default JRE (window, preferences, Java, Installed JREs) to the WebSphere v5.1 JRE (C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51\java\jre).

Everything compiles just fine and in fact runs in the app server (locally), but anytime I run the JSP validator I get the following error:

JavaCompile: cannot access java.lang.Object; bad class file: C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51\java\jre\lib\core.jar(java/lang/Object.class); class file has wrong version 48.0, should be 47.0; Please remove or make sure it appears in the correct subdirectory of the classpath.

Any help would be greatly appreciated.

Lin Feng
Ranch Hand

Joined: Dec 11, 2002
Posts: 142
The reason for this error is your JVM is older than core.jar

core.jar should be created by a javac with major.minor version 48.0

Your current JVM only supports 47.0


Bob Pfingsten

Joined: Jun 08, 2006
Posts: 2
Come again? Of coarse there is a difference in the versions. What I want to know is why/where is it finding this older JVM/core.jar? I have pointed my startup JVM to the one found under my runtimes (-vm "runtimes\base_v51\java\jre\bin\java.exe"). I have also set this same JVM as my default JVM in WSAD (Windows -> Preferences -> Java -> Installed JRE's - check mark on JVM corresponding to: runtimes\base_v51\java\jre\bin\java.exe). Where else is eclipse/WSAD looking for a JVM? Am I missing something here?
I agree. Here's the link:
subject: WSAD 5.1.2...Going Crazy!!! java.lang.Object
It's not a secret anymore!