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 13766] New: - No way to force path setting in java task
Date Fri, 18 Oct 2002 16:09:59 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=13766>.
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=13766

No way to force path setting in java task

           Summary: No way to force path setting in java task
           Product: Ant
           Version: 1.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: benson@basistech.com


In theory, java.library.path is all you should need to set to find libraries 
for JNI classes in Java.

However: using JDK 1.4.1_01 on Windows XP, I find the following: If a Java 
program calls System.loadLibrary("foo"), and foo.dll depends on bar.dll, and 
bar.dll is in one of the dirs in java.library.path but is NOT in PATH, the JRE 
fails to load it and a dialog pops up.

It seems as if, to get around this, there needs to be support for the <env> 
tag in <java>, so that one can force a setting of PATH. Or that <java> needs 
to notice a sysproperty setting of java.library.path and goof around with PATH 
when creating the process.

This also applies to <junit>.

--
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