You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Richardson, Will" <Wi...@echostar.com> on 2001/06/15 23:28:51 UTC

compiling...

I'm having a problem after compiling classes. The compile works fine and
then when i go to run it with JView i get exceptions. But when I compile it
with J++ I can run it just fine. I know they use different compilers (jvc
for microsoft and javac for sun) but I don't understand why it doesn't work
the same. 

Another thing that I'm not sure about is when I compile with javac in ANT
the file sizes are smaller than when i compile with J++. 

Any thoughts or suggestions?

Thanks for any help...

Will

Re: compiling...

Posted by Stefan Bodewig <bo...@apache.org>.
Will Richardson <Wi...@echostar.com> wrote:

> I'm having a problem after compiling classes. The compile works fine
> and then when i go to run it with JView i get exceptions. But when I
> compile it with J++ I can run it just fine. I know they use
> different compilers (jvc for microsoft and javac for sun) but I
> don't understand why it doesn't work the same.

I cannot help you here, but you can use jvc from within Ant - set
build.compiler to jvc.  Maybe this can make your live easier until you
detect and solve the real problem.

Stefan

Re: compiling...

Posted by Peter Donald <do...@apache.org>.
On Sat, 16 Jun 2001 07:28, Richardson, Will wrote:
> I'm having a problem after compiling classes. The compile works fine and
> then when i go to run it with JView i get exceptions. But when I compile it
> with J++ I can run it just fine. I know they use different compilers (jvc
> for microsoft and javac for sun) but I don't understand why it doesn't work
> the same.
>
> Another thing that I'm not sure about is when I compile with javac in ANT
> the file sizes are smaller than when i compile with J++.
>
> Any thoughts or suggestions?

neither compiler conforms to the JLS (java Language Specification) and even 
if they did it is allowed for compilers to store extra information in .class 
file.

I would recomend that you download an use jikes. It is faster and more 
conforming. The only bug that I know that is still outstanding is that it 
does not generate correct debugging out for JDPA (or is it JPDA?).