Compiler incompatibility?
- From: "Rhino" <no.offline.contact.please@xxxxxxxxxx>
- Date: Sat, 29 Apr 2006 14:01:27 -0400
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).
--
Rhino
.
- Follow-Ups:
- Re: Compiler incompatibility?
- From: Jean-Francois Briere
- Re: Compiler incompatibility?
- Prev by Date: Re: A fixed size window in Java
- Next by Date: Re: Java applet problem
- Previous by thread: Java applet problem
- Next by thread: Re: Compiler incompatibility?
- Index(es):
Relevant Pages
|