ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6608] New: - JAVA_HOME setting and location of tools.jar
Date Thu, 21 Feb 2002 10:54:53 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6608>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6608

JAVA_HOME setting and location of tools.jar

           Summary: JAVA_HOME setting and location of tools.jar
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Wrapper scripts
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: fredrik.holmqvist@avantra.se


Since several (most?) other applications requires the JAVA_HOME variable to 
point to the JRE installation I'd suggest the following change to ant.bat:

Before:
if exist "%JAVA_HOME%\lib\tools.jar" call "%ANT_HOME%\bin\lcp.bat" %JAVA_HOME%
\lib\tools.jar
After:
if exist "%JAVA_HOME%\lib\tools.jar" (
	call "%ANT_HOME%\bin\lcp.bat" %JAVA_HOME%\lib\tools.jar
) else (
	if exist "%JAVA_HOME%\..\lib\tools.jar" call "%ANT_HOME%\bin\lcp.bat" %
JAVA_HOME%\..\lib\tools.jar
)

This allows ant to work correctly if you have JAVA_HOME pointed to 
JAVA_SDK_HOME\jre instead of JAVA_SDK_HOME.

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message