You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2007/11/21 02:19:09 UTC
DO NOT REPLY [Bug 43921] New: - JavaEnvUtils.getJreExecutable() returns wrong executable
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43921>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43921
Summary: JavaEnvUtils.getJreExecutable() returns wrong executable
Product: Ant
Version: unspecified
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Other
AssignedTo: dev@ant.apache.org
ReportedBy: muaddib@erf.net
I'm having problems attempting to run a forking junit task from a 64-bit sparc
java instance.
It seems getJreExecutable("java") returns ${java.home}/bin/java, but in Solaris,
this will be the 32-bit java binary and not the 64 bit. The correct answer
would be ${java.home}/bin/sparcv9/java in this case.
Diff'ing System.getProperties() between 32-bit and 64-bit jdk1.5.0_13, we see
the following differences, which provide the contextual clues to correct this
problem.. Maybe the solution might be:
if (new File(${java.home}/bin/${os.arch}/${cmd}).exists()) ... ?
differences:
-sun.boot.library.path=/usr/jdk1.5.0_13/jre/lib/sparc
+sun.boot.library.path=/usr/jdk1.5.0_13/jre/lib/sparcv9
-java.vm.name=Java HotSpot(TM) Server VM
+java.vm.name=Java HotSpot(TM) 64-Bit Server VM
-os.arch=sparc
+os.arch=sparcv9
-java.library.path=/usr/jdk1.5.0_13/jre/lib/sparc/server:...
+java.library.path=/usr/jdk1.5.0_13/jre/lib/sparcv9/server:...
-sun.management.compiler=HotSpot Server Compiler
+sun.management.compiler=HotSpot 64-Bit Server Compiler
-sun.arch.data.model=32
+sun.arch.data.model=64
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
DO NOT REPLY [Bug 43921] - JavaEnvUtils.getJreExecutable() returns wrong executable
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43921>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43921
------- Additional Comments From stevel@apache.org 2007-11-21 04:22 -------
I can see this is a problem, but before we rush to fix it with a simple check,
note that I do test and run ant on 64-bit linux, first with the Sun JRE, more
recently with JRockit. And there bin/java is the name of the program
One workaround: could you do things with symlinks?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
DO NOT REPLY [Bug 43921] - JavaEnvUtils.getJreExecutable() returns wrong executable
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43921>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43921
bodewig@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|dev@ant.apache.org |notifications@ant.apache.org
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
DO NOT REPLY [Bug 43921] - JavaEnvUtils.getJreExecutable() returns wrong executable
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43921>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43921
------- Additional Comments From muaddib@erf.net 2007-11-26 08:47 -------
Well, I'm afraid we will be messing with symlinks to get around this. We want
to seamlessly force everyone to use 64-bit java, so we're contemplating
something like the following.
cd $JAVA_HOME/bin
mv java java.sparcv8
ln -s sparcv9/java
I think this must be uncomfortably irregular, even while I don't understand
enough to agree with Sun's rationale for making it so difficult to run 64-bit
binaries.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org