Re: Compiler incompatibility?
- From: "Jean-Francois Briere" <jfbriere@xxxxxxxxx>
- Date: 29 Apr 2006 11:59:13 -0700
The ANT javac task uses the JDK compiler. You must use a 1.4 version of
the JDK I guess.
The Eclipse project in the other hand uses the Eclipse compiler, which
must be set to 5.0 compliance level I guess.
Every time you save a .java file in your project it automatically
rebuild with the Eclipse compiler.
But when you start the execution of the ANT script in your project or
from the command line you use the JDK compiler and it can lead to
dependent .class files mismatch.
Two questions to be answered first:
1- In Eclipse:
In the window, left side: expand 'Ant' then click on 'Runtime'From the menu: 'Window' / 'Preferences...'
On the right side: expand 'Global Entries'
*** What do you see? Do you have a tools.jar in it? Does it come from a
JDK 1.4? Else? ***
2- In Eclipse:
select 'Properties'From the Package Explorer window: right-click on your project then
In the window, left side: click on 'Java Compiler'
*** On the right side, what is the compiler compliance level? ***
Regards
.
- Follow-Ups:
- Re: Compiler incompatibility?
- From: Rhino
- Re: Compiler incompatibility?
- References:
- Compiler incompatibility?
- From: Rhino
- Compiler incompatibility?
- Prev by Date: Eclipse: Checkstyle error indicators not updating when I save the file
- Next by Date: Re: Java applet problem
- Previous by thread: Compiler incompatibility?
- Next by thread: Re: Compiler incompatibility?
- Index(es):
Relevant Pages
|