This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Can't run applet: invalid bytecode
On Wed, 7 Feb 2007, Jim White wrote:
> Kjetil Svalastog Matheussen wrote:
>
> > On Wed, 7 Feb 2007, 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?))
> > >
> > >Appletviewer refuses totally. I'm doing the exact same things as last
> >
> > No, appletviewer works. Wrong options.
>
> That has to do with the "javac -target <version>" used to compile your code
> (actually kawa in this case). Evidently you're using Java 6 to compile Kawa.
>
> http://forum.java.sun.com/thread.jspa?threadID=5122605
>
Ah, thanks. I didn't notice that. Yes, I'm using java 6 and though I was
using java 5. But in my browser, I was using java 5. Changing my browser
to use java 6 as well and it works.
> If you're using the Ant build, a nice way to configure that (target attribute)
> for the <javac> task is by using ant.build.javac.target.
>
Well, thanks, but I'm using linux.