Hello all and thanks for your replies
By different I mean that once decompiled (with jd) or dissassembled with
javap, the resulting files are different.
In order to use the same javac options on the command line, I ran Ant with
the -debug option.
That being done I was able to copy the arguments Ant sent to javac.
With all the information provided by the Ant-Javac, I was able to, through
the command line Javac compile the exact same class.
And the bytecode produced is different.
In both cases, I use the javac provided with the JDK(1.5)
--Ant--
<javac srcdir="${component.path.src.java}"
destdir="${component.path.classes}" debug="on"
executable="C:\JDK1.5.0\bin\javac.exe" compiler="classic" source="1.5"
target="1.5">
</javac>
--Command Line--
>C:\JDK1.5.0\bin\javac -d ... -classpath ... -sourcepath...
classToCompile.java -g -source 1.5 -target 1.5
Please help!!!!!
Knuplesch, Juergen wrote:
>
> You probably use a different JDK (e.g. Eclipse uses his own javac) or
> different options.
> What exactly do you do in Ant javac and the other javac?
>
--
View this message in context:
http://old.nabble.com/java-bytecode-produced-by-%22Ant-javac%22-different-from-%22command-line-javac%22-bytecode-tp26443538p26451008.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]