ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Wilkinson <>
Subject RE: Antwort: class file size difference between Ant script and JB uilder
Date Tue, 30 Jan 2001 20:37:49 GMT
I use ant and JB4 to build my code interchangably and I am able to debug my
code within JB4 in both cases.  So I think it's an environment issue.

Why do you keep saying bjc?  Are you compiling from the command line using
bjc?  How do you launch bjc from the IDE?  bjc is a command line tool.  When
I type bjc from the command line I get this...

Borland Compiler 1.3.004 for Java
Copyright (c) 1997-2000 Inprise Corporation. All Rights Reserved.
Usage: bcj [-g][-verbose][-quiet][-nowarn][-obfuscate][-encoding name][-d
classpath path][-bootclasspath path][-extdirs path][-sourcepath
path][-target re
lease] {}

I'm pretty sure compiling from IDE does not use bjc, I believe this because
I have both JDK1.2.2 and JDK1.3 code bases.  The JDK1.2.2 code base is
compiled with JDK1.2.2 javac.


-----Original Message-----
From: Sibon Barman []
Sent: Tuesday, January 30, 2001 1:16 PM
Subject: RE: Antwort: class file size difference between Ant script and

I used the Sun's 1.3 JDK to compile rather than JBuilder's 1.3 compiler. I
still have the same problem.
Here is the error I get:
java.lang.VerifyError: (class: com/adventnet/nms/mapui/ListFilter, method:
PropAction signature: (Ljava/awt/Event;Ljava/lang/Object;)Z) Incompatible
object argument for function call
	at com.adventnet.nms.mapui.NmsListView.init(
Compiled Code)
	at Source)

But the same code compiled with Jbuilder4 works fine. It is driving me nuts.

Sibon Barman
SS8 Networks, Inc.
Suite 500
495 March Road, Kanata,
Ontario K2K 3G1

*: (613)592-2100 ext:3281

-----Original Message-----
From: danch []
Sent: Tuesday, January 30, 2001 10:49 AM
Subject: Re: Antwort: class file size difference between Ant script and
JBuilder wrote:
> Hi,
> JBuilder has its own compiler. When you are compiling from JBuilder IDE,
> it will always use this compiler - it will NOT use the compiler of the
> installed
> JDK (the JDK is just used for running java apps - not for compiling them)
> AFAIK you wont be able to use bjc with ANT, so
> * you can compile within JBuilder IDE (-> bcj)
> * you can compile with ANT and javac - but even when ANT is
>   using the JBuilder JDK - it will not use bjc
> I dont see a solution for your problem, since
> * JBuilder 4 will always recompile classes when they
>   are not compiled with bcj and you try to run them in the IDE
I don't believe this is true. I regularly launch ant builds and pick up
the class files in JBuilder's debugger.

> * ANT wont work with bjc
> I would recommend to get your code running when compiled
> with SUN javac using ant.
> PS: would you mind to send me some of your code that
>   causes problems? I am really surprised to hear that
>   bjc and javac will emit bytecode that shows different
>   behaviour when it is verified.
This is mystifying

> greetings,

View raw message