ist" ; "Martin Gainty"
<[EMAIL PROTECTED]>
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
>
Sent: Tuesday, March 14, 2006 5:56 PM
Subject: Re: Java (O/T) thing
On 3/14/06, Martin Gainty <[EMAIL PROTECTED]> 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
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, W
On 3/14/06, Martin Gainty <[EMAIL PROTECTED]> 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
--
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
5 matches
Mail list logo