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.
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
Joined: Jun 08, 2006
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?