Re: class file has wrong version 49.0, should be 48.0
- From: "Bjorn Abelli" <bjorn_abelli@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Jun 2007 12:18:10 +0200
"Petterson Mikael" <mikael@xxxxxxxxxxxxxx> wrote:
AFAIK: The class file i generated using jdk 1.5 and I try
to execute it using jdk 1.4.
When you write "generated", I assume you mean "compiled"...
I cannot change jdk but use 1.4 ( sniff).
I assume you mean that you run it on another machine, having only jre 1.4.
From what I can guess of your post, you have two main options, of which youcould try the first one first:
1. Compile with jdk 1.5, but use the switch "-target 1.4"
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javac.html
Also look at the cross-compilation example at the bottom of that page.
If that still doesn't work...
2. Download the 1.4 jdk to your development machine as well, and
use that when compiling this code.
Most IDE's for Java have the possibility to switch between different jdk:s,
so there's no need to remove 1.5.
/// Bjorn A
.
- References:
- class file has wrong version 49.0, should be 48.0
- From: Petterson Mikael
- class file has wrong version 49.0, should be 48.0
- Prev by Date: Re: how does windows find java.exe?
- Next by Date: If with colors
- Previous by thread: class file has wrong version 49.0, should be 48.0
- Next by thread: Re: class file has wrong version 49.0, should be 48.0
- Index(es):
Relevant Pages
|