ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Straw <>
Subject java fork="yes" hanging on Windows98
Date Fri, 05 Oct 2001 04:49:27 GMT
I've used Ant on Solaris and WinNT before with no problems.  Now I'm on
Windows98, and it seems that using the java task with fork="yes" hangs
when Ant tries to fork a new JVM.  If I don't fork (no fork="yes"),
things work fine.  But I need to set some of the attributes (like
jvmarg) which are only valid if fork="yes", so I need to fork a new JVM.

I'm using Ant 1.4, JDK 1.3.1_01.  I have Ant installed in C:\ant.

Simple build.xml:

<project name="javafork" default="test" >
        <target name="test" >
                <java classname="Test" fork="yes">
                        <classpath path="." />

Output I'm seeing from "ant -verbose":

Ant version 1.4 compiled on September 3 2001
Buildfile: build.xml
Detected Java version: 1.3 in: C:\JDK1.3.1_01\JRE
Detected OS: Windows 98
parsing buildfile C:\Documents\antProblem\build.xml with URI =
Project base dir set to: C:\Documents\antProblem
Build sequence for target `test' is [test]
Complete build sequence is [test]

     [java] Forking C:\JDK1.3.1_01\JRE\..\bin\java.exe -classpath
C:\Documents\antProblem Test

[and then it hangs]

Any help from anyone would be greatly appreciated.

Andy Straw

View raw message