Try to port my app to my work computer and get a class error-help?
Hi guys,
I was trying to show off an app I made at home and went to compile it on my work computer and got this error.
java.lang.UnsupportedClassVersionError: Bad version number in .class file
Can someone tell me what I need to do?
Message was edited by:
tvance929
[316 byte] By [
tvance929a] at [2007-11-26 22:41:57]

You compiled a dependent class with a newer version of the JDK, and are now compiling or trying to run code which depends on that class, with an older version.
> But when I try and download JDK6 from the Sun site,
> it tells me that I already have that software
> installed...?
Ok, but apparently you also have an older version installed as well, and you're using the older one.
Do you know what the PATH environment variable is for? Do you know how to change it so that it 'sees' the newer version first?
Also look around on your computer's drive, checking for versions of java / javac / javaw components in each place included in your PATH.
These kinds of things (familiarity with the computer and OS) are all basically prerequisite knowledge to apply before you can be successful at software development.
> That did it, THANK YOU!!! -- Hey, would an ANT> script run this program easily from maybe a browser?For others reading this, no need to answer here. Continued at: http://forum.java.sun.com/thread.jspa?threadID=5152149