You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Martin Gainty <mg...@hotmail.com> on 2006/03/14 23:52:35 UTC
Java (O/T) thing
Greets-
Does anyone know what this message means?
"class file has wrong version 49.0, should be 48.0"
Thanks,
M-
Re: Java (O/T) thing
Posted by Ed Griebel <ed...@gmail.com>.
I wrestled with this exact thing this week. For the benefit of people
searching the archives, to force a 1.4-compatible JDK to be used by a
1.5 compiler you can use "-target 1.4 -source 1.4" on the javac
command line, or for ant, "target='1.4' source='1.4' " in your javac
task.
-ed
On 3/14/06, Wendy Smoak <ws...@gmail.com> wrote:
> On 3/14/06, Martin Gainty <mg...@hotmail.com> wrote:
>
> > Does anyone know what this message means?
> > "class file has wrong version 49.0, should be 48.0"
>
> You're using JDK 1.4 and attempting to use a class that was compiled
> for JDK 1.5 (or Java SE 5).
>
> --
> Wendy
> \
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Java (O/T) thing
Posted by Martin Gainty <mg...@hotmail.com>.
I downloaded supposedly 1.42 JDK
I went back to my old Oracle JDeveloper JDK and all is well
Thanks Wendy-
Martin-
----- Original Message -----
From: "Wendy Smoak" <ws...@gmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>; "Martin Gainty" <mg...@hotmail.com>
Sent: Tuesday, March 14, 2006 5:56 PM
Subject: Re: Java (O/T) thing
On 3/14/06, Martin Gainty <mg...@hotmail.com> wrote:
> Does anyone know what this message means?
> "class file has wrong version 49.0, should be 48.0"
You're using JDK 1.4 and attempting to use a class that was compiled
for JDK 1.5 (or Java SE 5).
--
Wendy
Re: Java (O/T) thing
Posted by Wendy Smoak <ws...@gmail.com>.
On 3/14/06, Martin Gainty <mg...@hotmail.com> wrote:
> Does anyone know what this message means?
> "class file has wrong version 49.0, should be 48.0"
You're using JDK 1.4 and attempting to use a class that was compiled
for JDK 1.5 (or Java SE 5).
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Java (O/T) thing
Posted by Martin Gainty <mg...@hotmail.com>.
Thats it
Somehow 1.5 binaries spefically java.exe and javac.exe got mixed in the
1.4EE tar
Reverted back to JDeveloper 1.42 and all is well
Thanks David,
Martin--
----- Original Message -----
From: "David G. Friedman" <hu...@ix.netcom.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>; "Martin Gainty"
<mg...@hotmail.com>
Sent: Tuesday, March 14, 2006 5:56 PM
Subject: RE: Java (O/T) thing
>I could swear we've seen that before on this list. I think it means the
>JDK that compiled a class is NEWER than the JRE
> you are running it on. For example, a class (or jar) may have been
> compiled under JDK 1.5 without compatibility flags
> yet you put it on a 1.4.X JRE so it is complaining to you it can't do it.
>
> Regards,
> David
>
> -----Original Message-----
> From: Martin Gainty [mailto:mgainty@hotmail.com]
> Sent: Tuesday, March 14, 2006 5:53 PM
> To: Struts Users Mailing List
> Subject: Java (O/T) thing
>
>
> Greets-
>
> Does anyone know what this message means?
> "class file has wrong version 49.0, should be 48.0"
>
> Thanks,
> M-
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Java (O/T) thing
Posted by "David G. Friedman" <hu...@ix.netcom.com>.
I could swear we've seen that before on this list. I think it means the JDK that compiled a class is NEWER than the JRE
you are running it on. For example, a class (or jar) may have been compiled under JDK 1.5 without compatibility flags
yet you put it on a 1.4.X JRE so it is complaining to you it can't do it.
Regards,
David
-----Original Message-----
From: Martin Gainty [mailto:mgainty@hotmail.com]
Sent: Tuesday, March 14, 2006 5:53 PM
To: Struts Users Mailing List
Subject: Java (O/T) thing
Greets-
Does anyone know what this message means?
"class file has wrong version 49.0, should be 48.0"
Thanks,
M-
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org