| View previous topic :: View next topic |
| Author |
Message |
John McGrath [TeamB] Guest
|
Posted: Fri Jul 11, 2003 2:13 am Post subject: Re: NoSuchMethodError when running Ant to compile in JBuilde |
|
|
On 7/10/2003 at 12:08:19 PM, James Lee wrote:
| Quote: | I got a problem with Ant in JBuidler9 Personal, Thinkpad T21/NT
4.0+SP6a/512M. When I run Ant to compile a simple java code using
JDK 1.4.1, comes with JBuilder9, it is OK; If I change to JDK 1.3.1,
the following error messages pop up -
[javac] Compiler internal error.
[javac] java.lang.NoSuchMethodError
[javac] at com.sun.tools.javac.v8.code.ClassReader.
(ClassReader.java:30)
|
It sounds like your JDK definition is messed up. Does your JDK 1.3.1
definition have "tools.jar" in the list of libraries?
--
Regards,
John McGrath [TeamB]
|
|
| Back to top |
|
 |
James Lee Guest
|
Posted: Mon Jul 14, 2003 6:24 pm Post subject: Re: NoSuchMethodError when running Ant to compile in JBuilde |
|
|
"John McGrath [TeamB]" <ng-b (AT) jpmcgrath (DOT) net> wrote:
| Quote: | It sounds like your JDK definition is messed up. Does your JDK 1.3.1
definition have "tools.jar" in the list of libraries?
--
Regards,
John McGrath [TeamB]
|
I checked my Configure JDKs, the JDK home c:/JBuilder9.jdk1.3.1
does have a definition in Class - c:/Builder9/jdk1.3.1/lib/tools.jar.
And, my JDK1.4 has a definition in Class - c:/JBuilder9/jdk1.4/lib/tools.jar
|
|
| Back to top |
|
 |
John McGrath [TeamB] Guest
|
Posted: Tue Jul 15, 2003 5:46 am Post subject: Re: NoSuchMethodError when running Ant to compile in JBuilde |
|
|
On 7/14/2003 at 2:24:57 PM, James Lee wrote:
| Quote: | c:/Builder9/jdk1.3.1/lib/tools.jar
|
Is this what it actually says? Did you miss the "J" in "JBuilder9"?
--
Regards,
John McGrath [TeamB]
|
|
| Back to top |
|
 |
James Lee Guest
|
Posted: Tue Jul 15, 2003 2:59 pm Post subject: Re: NoSuchMethodError when running Ant to compile in JBuilde |
|
|
"John McGrath [TeamB]" <ng-b (AT) jpmcgrath (DOT) net> wrote:
| Quote: | Is this what it actually says? Did you miss the "J" in "JBuilder9"?
--
Regards,
John McGrath [TeamB]
|
Sorry John, my typo !
Yes, I missed the "J", should be "c:JBuilder9..." in my JBuilder9 JDKs settings.
|
|
| Back to top |
|
 |
John McGrath [TeamB] Guest
|
Posted: Wed Jul 16, 2003 2:21 am Post subject: Re: NoSuchMethodError when running Ant to compile in JBuilde |
|
|
On 7/15/2003 at 10:59:24 AM, James Lee wrote:
| Quote: | Sorry John, my typo !
Yes, I missed the "J", should be "c:JBuilder9..." in my JBuilder9
JDKs settings.
|
I am not sure I understood the answer. Was the typo in the newsgroup
message or in the JDK configuration?
--
Regards,
John McGrath [TeamB]
|
|
| Back to top |
|
 |
James Lee Guest
|
Posted: Wed Jul 16, 2003 10:25 am Post subject: Re: NoSuchMethodError when running Ant to compile in JBuilde |
|
|
"John McGrath [TeamB]" <ng-b (AT) jpmcgrath (DOT) net> wrote:
| Quote: | On 7/14/2003 at 2:24:57 PM, James Lee wrote:
c:/Builder9/jdk1.3.1/lib/tools.jar
Is this what it actually says? Did you miss the "J" in "JBuilder9"?
--
Regards,
John McGrath [TeamB]
I missed the "J" when I posted this - "c:/Builder9/jdk1.3.1/lib/tools.jar" here. |
JBuilder9 will automatically defect all the subfolders when I tell it the root folder of JDK 1.3.1 is "c:JBuilder9".
But when I posted all the JDK homes of my JBuilder9 here, I missed a "J".
|
|
| Back to top |
|
 |
John McGrath [TeamB] Guest
|
Posted: Thu Jul 17, 2003 3:10 am Post subject: Re: NoSuchMethodError when running Ant to compile in JBuilde |
|
|
On 7/16/2003 at 6:25:10 AM, James Lee wrote:
| Quote: | I missed the "J" when I posted this -
"c:/Builder9/jdk1.3.1/lib/tools.jar" here. JBuilder9 will
automatically defect all the subfolders when I tell it the root
folder of JDK 1.3.1 is "c:JBuilder9". But when I posted all the JDK
homes of my JBuilder9 here, I missed a "J".
|
I still do not understand. Are you saying that:
1) It said "JBuilder9" in your JDK settings, but you said "Builder9"
in your messages by mistake. The problem persists.
2) It said "Builder9" in your JDK settings. You changed it to
"JBuilder9". The problem is fixed.
3) Something else.
--
Regards,
John McGrath [TeamB]
|
|
| Back to top |
|
 |
James Lee Guest
|
Posted: Thu Jul 17, 2003 7:01 pm Post subject: Re: NoSuchMethodError when running Ant to compile in JBuilde |
|
|
"John McGrath [TeamB]" <ng-b (AT) jpmcgrath (DOT) net> wrote:
| Quote: | I still do not understand. Are you saying that:
1) It said "JBuilder9" in your JDK settings, but you said "Builder9"
in your messages by mistake. The problem persists.
2) It said "Builder9" in your JDK settings. You changed it to
"JBuilder9". The problem is fixed.
3) Something else.
--
Regards,
John McGrath [TeamB]
|
1) is correct, John ! Thanks !
|
|
| Back to top |
|
 |
John McGrath [TeamB] Guest
|
Posted: Fri Jul 18, 2003 4:54 am Post subject: Re: NoSuchMethodError when running Ant to compile in JBuilde |
|
|
Have you tried changing any of the settings under the ANT build file's
properties and under the Project Properties (Build | Ant)?
You should also try setting the Debug level to verbose -- you might get
a clue as to what is going wrong from the output.
--
Regards,
John McGrath [TeamB]
|
|
| Back to top |
|
 |
|