• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
reply
    Bookmark Topic Watch Topic
  • New Topic