Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 51196 invoked by uid 500); 13 Mar 2001 23:26:49 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Delivered-To: moderator for ant-user@jakarta.apache.org Received: (qmail 9600 invoked from network); 13 Mar 2001 19:30:52 -0000 Message-ID: <001e01c0abe8$1f25b0a0$40eb5c8b@nlun.nlun3620> From: "Rintcius" To: Subject: Re: Bug in running java with fork option on W95/98 when there is more than 1 classpath entry? Date: Tue, 13 Mar 2001 19:03:34 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0015_01C0ABF0.4D9CDB40" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_0015_01C0ABF0.4D9CDB40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable >Could you please try=20 >java -version=20 >as well as=20 >E:\java\lib\jakarta-ant-1.3\bin\antRun.bat = E:\my\rabook\jbuilder\com\rintcius\antlr\260 java -version Checked them & they are equal (1.2.2) I think i've found the problem, imo it is in the way antRun.bat eats its = parameters. I've added an echo xx %1 to the PARAM loop. This results in the following output: [java] Forking java -classpath = E:\my\java\tmp\antlr_test;E:\java\lib\antlr-2.6.0 antlr.Tool csv.g Execute:CommandLauncher: E:\java\lib\jakarta-ant-1.3\bin\antRun.bat = E:\my\rabook\jbuilder\com\rintcius\antlr\260 java -classpath = E:\my\java\tmp\antlr_test;E:\java\lib\antlr-2.6.0 antlr.Tool csv.g [java] De opdracht of bestandsnaam is onjuist. [java] java.lang.NoClassDefFoundError: E:\java\lib\antlr-2/6/0 [java] xx -classpath [java] xx E:\my\java\tmp\antlr_test [java] xx E:\java\lib\antlr-2.6.0 [java] xx antlr.Tool [java] xx csv.g So probably W9x shifts when it encounters a space AND when it encounters = a semicolon. In the meantime i've upgraded to java 1.3 & as a result (since antRun is = not called anymore) the problem is worked around. I'm still curious though how this bug can be fixed. Rintcius ------=_NextPart_000_0015_01C0ABF0.4D9CDB40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
>Could you please try
>java -version =
>as well=20 as
>E:\java\lib\jakarta-ant-1.3\bin\antRun.bat=20 E:\my\rabook\jbuilder\com\rintcius\antlr\260 java -version
Checked = them &=20 they are equal (1.2.2)
 
I think i've found the problem, imo it is in = the way=20 antRun.bat eats its parameters. I've added an echo xx %1 to the = PARAM=20 loop.
This results in the following output:
 
     [java] Forking java = -classpath=20 E:\my\java\tmp\antlr_test;E:\java\lib\antlr-2.6.0 antlr.Tool=20 csv.g
Execute:CommandLauncher: = E:\java\lib\jakarta-ant-1.3\bin\antRun.bat=20 E:\my\rabook\jbuilder\com\rintcius\antlr\260 java -classpath=20 E:\my\java\tmp\antlr_test;E:\java\lib\antlr-2.6.0 antlr.Tool=20 csv.g
     [java] De opdracht of bestandsnaam is=20 onjuist.
     [java] = java.lang.NoClassDefFoundError:=20 E:\java\lib\antlr-2/6/0
     [java] xx=20 -classpath
     [java] xx=20 E:\my\java\tmp\antlr_test
     [java] xx=20 E:\java\lib\antlr-2.6.0
     [java] xx=20 antlr.Tool
     [java] xx csv.g
So probably W9x shifts when it encounters a space = AND when it=20 encounters a semicolon.
 
In the meantime i've upgraded to java 1.3 & as a = result=20 (since antRun is not called anymore) the problem is worked = around.
I'm still curious though how this bug can be=20 fixed.
 
Rintcius
 
------=_NextPart_000_0015_01C0ABF0.4D9CDB40--