For Programmers: Free Programming Magazines  


Home > Archive > Java Help > June 2007 > class file has wrong version 49.0, should be 48.0









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author class file has wrong version 49.0, should be 48.0
Petterson Mikael

2007-06-27, 8:10 am

Hi,

I have downloaded a 3:rd party jar file. When I try to run my code (
using the API) I get the following error:

class file has wrong version 49.0, should be 48.0

AFAIK: The class file i generated using jdk 1.5 and I try to execute it
using jdk 1.4.

I cannot change jdk but use 1.4 ( sniff).

The provider of the jar file has the following requirements:

Requirements
Java2HTML is written in Java and therefore needs a Java 1.1 or above
compatible JVM

Is there a way around this?

cheers,

//mikael
Roedy Green

2007-06-28, 10:09 pm

On Wed, 27 Jun 2007 09:47:22 +0200, Petterson Mikael
<mikael@no.reply.to.se> wrote, quoted or indirectly quoted someone who
said :

>I have downloaded a 3:rd party jar file. When I try to run my code (
>using the API) I get the following error:
>
>class file has wrong version 49.0, should be 48.0
>
>AFAIK: The class file i generated using jdk 1.5 and I try to execute it
>using jdk 1.4.
>
>I cannot change jdk but use 1.4 ( sniff).
>
>The provider of the jar file has the following requirements:
>
>Requirements
>Java2HTML is written in Java and therefore needs a Java 1.1 or above
>compatible JVM
>
>Is there a way around this?


He has presumably used JDK 1.5 features and methods not available in
JDK 1.4. What can you do?

1. upgrade to JDK 1.6.
see http://mindprod.com/jgloss/jdk.html
JDK 1.4 came out 2002-02-13. That is 5 years ago an extremely long
time in net years. That was even before the Iraq war started.

2. decompile the code, and modify it to avoid JDK 1.5 features. If
you are lucky there won't be any. Any Genericity disappears on
decompilation. see http://mindprod.com/jgloss/decompiler.html


--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com