I think I'm running Java 1.6? If I run "which java" from the command line I get /usr/bin/java and if I run java -version I get Java 1.6.0_26.
Is there something else I can check? On Jan 7, 2013, at 2:58 PM, Chuck Hill <[email protected]> wrote: > Are you SURE you are running with a 1.5 JVM on that machine? > > > On 2013-01-07, at 4:53 PM, Johnny Miller wrote: > >> Hi, >> >> I have a system running OS X 10.5.8 with Java 1.6.0_26 >> >> I've been compiling applications for this environment for Java 1.5. But I >> had an app that was using ERXFileUtilities.stringFromFile(File f) and that >> requires Java 1.6 in the newer versions of Wonder. So I tried compiling my >> app for Java 1.6 but when I go to deploy it I get the following error: >> >> /Library/WebObjects/Extensions/ >> java.lang.UnsupportedClassVersionError: Bad version number in .class file >> at java.lang.ClassLoader.defineClass1(Native Method) >> at java.lang.ClassLoader.defineClass(ClassLoader.java:676) >> at >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >> at java.net.URLClassLoader.access$100(URLClassLoader.java:56) >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:317) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >> at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84) >> >> I'm kind of confused how to fix this... does anybody have a suggestion? >> >> Aloha, >> Mr. Johnny Miller >> Web Development Manager >> Kahalawai Media Company >> Lahaina, HI 96761 >> tel: (808) 661-7962 | mobile: (808) 283-0791 >> website | e-mail >> >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net >> >> This email sent to [email protected] > > -- > Chuck Hill Senior Consultant / VP Development > > Practical WebObjects - for developers who want to increase their overall > knowledge of WebObjects or who are trying to solve specific problems. > http://www.global-village.net/gvc/practical_webobjects > > Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing > Companies in B.C! > Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of > Canada’s Fastest-Growing Companies by PROFIT Magazine! > > > > > > > > _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
