Bad version number in .class file

I’m creating a simple script, using rrd4j (https://rrd4j.dev.java.net/).

When I try to run it, I get the following error:

(eval):1:in `include_class’: cannot link Java class org.rrd4j.DsType,
probable missing dependency: Bad version number in .class file
(NameError)

Can anybody help me out with what exactly that error is telling me?

Thanks,
Chris


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Chris E. wrote:

I’m creating a simple script, using rrd4j (https://rrd4j.dev.java.net/).

When I try to run it, I get the following error:

(eval):1:in `include_class’: cannot link Java class org.rrd4j.DsType,
probable missing dependency: Bad version number in .class file
(NameError)

Can anybody help me out with what exactly that error is telling me?

It appears that the jar file was compiled under a newer version of Java
than what you are trying to run it under. The error normally includes
the version number for the class.

The fix is to use a current version of Java while running your script.

Fred

Thanks,
Chris


To unsubscribe from this list, please visit:

 http://xircles.codehaus.org/manage_email

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

You are welcome :slight_smile: Glad I could help.

Fred

Thanks, that was the problem. It seems rrd4j was compiled under Java
1.6, while jruby is based on 1.5. I recompiled rrd4j under 1.5 and
that fixed the problem.

Chris

On Fri, Sep 25, 2009 at 10:16 AM, Frederic J. [email protected]
wrote:

Can anybody help me out with what exactly that error is telling me?
Thanks,


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email