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 2008/01/18 13:42:46 UTC
DO NOT REPLY [Bug 44267] New: - Unable to run ant after upgrading JDK 5.0 update 10 to JDK 5.0 Update 14.
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=44267>.
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=44267
Summary: Unable to run ant after upgrading JDK 5.0 update 10 to
JDK 5.0 Update 14.
Product: Ant
Version: 1.6.5
Platform: Other
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: Build Process
AssignedTo: notifications@ant.apache.org
ReportedBy: Shivananda.Yadrami@headstrong.com
I have upgraded my JDK 5.0 Update 10 to JDK 5.0 Update 14. After updating, I am
unable to run the ant tool from cygwin.
The same thing is working when I run the ant from CMD.
Below is the error message what I am getting:
Error: JAVA_HOME is not defined correctly.
We cannot execute /cygdrive/c/Java/jdk14/bin/java
I have set the JAVA_HOME properly and interesting thing is; I am able to run all
the java commands from the cygwin.
It is clearly seen from ant.sh that you are setting JAVACMD like this:
JAVACMD="$JAVA_HOME/bin/java", which is correct.
However when I try to execute the below command, I am getting the proper message.
$ $JAVA_HOME/bin/java.exe
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
>From my basic tests, it seems JAVA_HOME & cygwin setting are proper.
Please look at this issue & correct if any thing wrong with my end.
Please suggest me if you have any work around for this.
--
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.
DO NOT REPLY [Bug 44267] - Unable to run ant after upgrading JDK 5.0 update 10 to JDK 5.0 Update 14.
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=44267>.
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=44267
Shivananda.Yadrami@headstrong.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
------- Additional Comments From Shivananda.Yadrami@headstrong.com 2008-01-18 07:16 -------
I am able to execute $JAVACMD succssfully from cygwin. But the ant.sh is saying
we can execute $JAVACMD.
May I know what this below code does?
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly."
echo " We cannot execute $JAVACMD"
exit 1
fi
If I put $JAVACMD just above this code, it is executing the $JAVACMD.
This is happening only when I upgrde the JDK from Update 10 to 14 or 13.
--
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.
DO NOT REPLY [Bug 44267] - Unable to run ant after upgrading JDK 5.0 update 10 to JDK 5.0 Update 14.
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=44267>.
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=44267
peterreilly@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From peterreilly@apache.org 2008-01-18 06:50 -------
Ant does not know that you are using cygwin,
the directory \cygwin\c does not exist:
from a command line (cmd):
"""
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\reilly>dir \cygwin\c
The system cannot find the file specified.
C:\Documents and Settings\reilly>
"""
--
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.