You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2009/02/20 00:50:39 UTC
DO NOT REPLY [Bug 46739] New: java.home gives errors when it is set
to a JDK
https://issues.apache.org/bugzilla/show_bug.cgi?id=46739
Summary: java.home gives errors when it is set to a JDK
Product: Ant
Version: 1.7.1
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo: notifications@ant.apache.org
ReportedBy: M8R-9yxyyv@mailinator.com
Many projects rely on java.home (ie: jboss-ws build/install ant files)
if you run these ant scripts they will give errors since java.home is being set
to the users %JAVA_HOME%/jre.
Users that add "-Djava.home=%JAVA_HOME%" when running ant will get the
following error:
can't open C:\Progra~1\Java\jdk1.6.0_04\lib\tzmappings.
ZoneInfo: C:\Progra~1\Java\jdk1.6.0_04\lib\zi\ZoneInfoMappings (The system
cannot find the path specified)
ZoneInfo: C:\Progra~1\Java\jdk1.6.0_04\lib\zi\ZoneInfoMappings (The system
cannot find the path specified)
(Note: JAVA_HOME is set to C:\Progra~1\Java\jdk1.6.0_04)
This is happening because ant assums the java.home will be the JRE.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 46739] java.home gives errors when it is set to a
JDK
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46739
J.M. (Martijn) Kruithof <jk...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution| |WORKSFORME
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 46739] java.home gives errors when it is set to a
JDK
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46739
--- Comment #1 from J.M. (Martijn) Kruithof <jk...@apache.org> 2009-02-22 09:55:11 PST ---
When using the following build.xml file i cannot reproduce the problem
<project name="bug-xxxxy" default="bug" >
<target name="bug">
<echo>Java Home is ${java.home}</echo>
</target>
</project>
Run without -D on java.home
D:\data\eclipseworkspace\ant-trunk\testje>c:\java\apache-ant-1.7.1\bin\ant
Buildfile: build.xml
bug:
[echo] Java Home is c:\java\jdk1.6.0_11\jre
BUILD SUCCESSFUL
Total time: 0 seconds
run with -D on java.home (java.home set to c:\java\jdk1.6.0_11
D:\data\eclipseworkspace\ant-trunk\testje>c:\java\apache-ant-1.7.1\bin\ant
-Djav
a.home=%JAVA_HOME%
Buildfile: build.xml
bug:
[echo] Java Home is c:\java\jdk1.6.0_11
BUILD SUCCESSFUL
Total time: 0 seconds
Please specify when this error arises, preferably including a build file that
reproduces the problem.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 46739] java.home gives errors when it is set to a
JDK
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46739
J.M. (Martijn) Kruithof <jk...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.