This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Can't run applet: invalid bytecode
- From: Per Bothner <per at bothner dot com>
- To: Kjetil Svalastog Matheussen <k dot s dot matheussen at notam02 dot no>
- Cc: kawa at sources dot redhat dot com
- Date: Wed, 07 Feb 2007 10:02:00 -0800
- Subject: Re: Can't run applet: invalid bytecode
- References: <Pine.LNX.4.64.0702071834400.6816@iannis.localdomain>
Kjetil Svalastog Matheussen wrote:
I can't run the scribble applet again, and I'm running cvs.
In opera with jvm 5 I get the error "invalid bytecode",
In firefox with jvm 4 I get the error "Unsupported major.minor version 50.0"
(Do I really need hava 5? (50?))
If Kawa was configured with the option --with-java-source=5 (or 6) then
Kawa will generate code that requires the Java 5 VM and libraries.
Even if you don't, if you compiled the Kawa sources using the Java 5
version of javac, it will by default generate .class files with a
version number that requires Java 5 VM.
You can (though I haven't tried this) compile thus:
make JAVAC='javac -target 1.4'
or:
make JAVAC='javac -source 1.4'
--
--Per Bothner
per@bothner.com http://per.bothner.com/