• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Unsupported major.minor version 48.0

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've created JAR for some web code to put on our test machine. Originally this was running smoothly, and then I changed the JVM to jdk1.4.2 (to compile some Regular Expression code). After uploading this code, I got the following error on an object I've never had problems with before.

failed with java.lang.UnsupportedClassVersionError: arc/web/servlets/pub/GetSoeOrder (Unsupported major.minor version 48.0) for arc.web.servlets.pub.GetSoeOrder

I got rid of the Regular Expression and changed the JVM back to the "detected JVM" setting (which is the eclipse JRE). I rebuilt all the code, but I'm still getting this error when I re-JAR the code and stick it on the test box.

Any suggestions?

Steve

FYI: I'm using:
WebSphere Studio Application Developer Integration Edition

Version: 5.0.0
Build id: 20030205_0822
[ May 19, 2004: Message edited by: steve nicholls ]
 
steve nicholls
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, I've been wrestling with this one for a day, and I'm still running into problems. I was able to load the same code from a different machine to the test box and it works correctly .

So now the error seems to be originating from just this machine. I removed all the projects, ears, etc... from this machine and then I set the JVM back to its default (eclipse JVM, which works on the other machines). I shut down WSAD and the machine. Started WSAD up and created all the projects again with the original baseline code, then I rebuilt all the code. However when I create the JAR and put it on the test box (from this machine) I'm still getting the same error:


failed with java.lang.UnsupportedClassVersionError: arc/web/servlets/pub/GetSoeOrder (Unsupported major.minor version 48.0) for arc.web.servlets.pub.GetSoeOrder

Can anyone please shed some light this issue so I can keep my sanity.

Thanks!!!
Steve
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try changing JRE to Websphere v5.1. The point is the JRE you use
must be able to support JDK 1.4. I have faced this problem and solved
this by changing the JRE.

HTH
Roshan
 
Roshan Lal
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correction to my previous post. The version you said you are using is 5.0.0; that does not support JDK 1.4. The version 5.1.1 supports JDK 1.4.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!