Thus spake Thomas Russ: > > On Sep 12, 2007, at 11:58 AM, Joel Uckelman wrote: > > > Thus spake Thomas Russ: > >> > >> On Sep 11, 2007, at 6:42 PM, b5mith wrote: > >> > >>> But Joel it doesn't work with your version of Vengine.jar. This is > >>> the exception: > >>> > >>> Exception in thread "main" > >>> java.lang.UnsupportedClassVersionError: Bad > >>> version n > >>> umber in .class file > >> > >> Hmmm. That's from a Java version mismatch. > >> > >> Since a previous message indicated you are running Java 1.5, it > >> sounds like Joel's was compiled with Java 1.6 instead, > > > > I am compiling with 1.6, but I'm using the "-source 5" flag. The > > exception > > doesn't seem to say which class is the problem. How can I resolve > > this? > > You also need to set the "-target 5" flag, otherwise it takes 1.5 source > and produces 1.6 class files.
I thought that when you set the source to 5, the target defaulted to 5 as well. (At least that's how I interpreted the javac man page.) Anyway, I recompiled this way. We'll see if it makes a difference. Hey, Ben, there's a new Vengine.jar here for you to try: http://www.nomic.net/~uckelman/tmp/vassal/Vengine.jar -- J.
