R
Rhino
I am trying to compile a Java class, Foo, that has a dependency on another
Java class, Bar. I'm getting this message from the compile, which is taking
place in an Ant script:
[javac] Compiling 1 source file to
E:\eclipse\3.0.1\eclipse\workspace\RDS\bin
[javac]
E:\eclipse\3.0.1\eclipse\workspace\RDS\src\com\xyz\java\TextUDFs.java:58:
cannot access com.xyz.java.Bar
[javac] bad class file:
E:\eclipse\3.0.1\eclipse\workspace\RDS\bin\com\xyz\java\Bar.class
[javac] class file has wrong version 49.0, should be 48.0
[javac] Please remove or make sure it appears in the correct subdirectory of
the classpath.
[javac] private static Bar bar = null;
[javac] ^
[javac] 1 error
I'm not quite clear on what is going on here. Can anyone enlighten me?
The message makes it sound like the code for class Bar was generated with a
later compiler, e.g. 1.5.0, than the code for class Foo, e.g. 1.4.0, but I
don't think that is the case.
What do I need to do to make Foo and Bar play nicely together?
I'm using Ant 1.6.2 within Eclipse 3.1.1 on Windows XP (SP2).
Java class, Bar. I'm getting this message from the compile, which is taking
place in an Ant script:
[javac] Compiling 1 source file to
E:\eclipse\3.0.1\eclipse\workspace\RDS\bin
[javac]
E:\eclipse\3.0.1\eclipse\workspace\RDS\src\com\xyz\java\TextUDFs.java:58:
cannot access com.xyz.java.Bar
[javac] bad class file:
E:\eclipse\3.0.1\eclipse\workspace\RDS\bin\com\xyz\java\Bar.class
[javac] class file has wrong version 49.0, should be 48.0
[javac] Please remove or make sure it appears in the correct subdirectory of
the classpath.
[javac] private static Bar bar = null;
[javac] ^
[javac] 1 error
I'm not quite clear on what is going on here. Can anyone enlighten me?
The message makes it sound like the code for class Bar was generated with a
later compiler, e.g. 1.5.0, than the code for class Foo, e.g. 1.4.0, but I
don't think that is the case.
What do I need to do to make Foo and Bar play nicely together?
I'm using Ant 1.6.2 within Eclipse 3.1.1 on Windows XP (SP2).