This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Bob Pfingsten
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks
 
Lin Feng
Ranch Hand
Posts: 142
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

Thanks

Lin
 
Bob Pfingsten
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic