Ant: Newbie Problem - Please Help

N

Newbie

Hi,

we're running Linux RH 3.0, with a JDK of 1.3.1_04 and Apache Ant
version 1.5.2-23.

There is a version of java installed with Oracle Apps Server 9.0.4 but
I've set the $JAVA_HOME to be /usr/java/jdk1.3.1_04 and the $PATH has
this directory as the first entry.

When I try to run:
ant create.wizard -verbose I get the output below.

Typing whereis java gives:
java: /usr/bin/java /usr/share/java

Typing which java gives:
/usr/java/jdk1.3.1_04/bin/java

Hope someone can help.

Many thanks.

Ed.

-------------------------------------------------------------------
[java] Executing '/usr/bin/gij-ssa' with arguments:
[java] '-classpath'
[java]
'/u02/workflow/DEV/classes:/u02/workflow/DEV/lib/jdom/jdom.jar:/u02/workflow/DEV/lib/jdom/jaxen-core.jar:/u02/workflow/DEV/lib/jdom/jaxen-jdom.jar:/u02/workflow/DEV/lib/jdom/saxpath.jar:/u02/workflow/DEV/lib/xerces/xerces.jar:/u02/workflow/DEV/lib/workflow/workflow.jar:/u01/app/oracle/product/904_mid/j2ee/home/oc4j.jar:/u02/workflow/DEV/lib/castor/castor.jar:/u02/workflow/DEV/lib/CommonUtil/CommonUtil.jar:/u02/workflow/DEV/lib/log4j/log4j.jar:/u02/workflow/DEV/lib/jaf/activation.jar:/u02/workflow/DEV/lib/javamail/mail.jar:/u02/workflow/DEV/warClasses/WEB-INF/classes'
[java]
'com.sct.workflow.configuration.WorkflowConfigurationHelper'
[java] '/u02/workflow/DEV/config/configuration.xml'
[java] '/u02/workflow/DEV/config/WorkflowConfiguration.xsd'
[java]
[java] The ' characters around the executable and arguments are
[java] not part of the command.
[java] Exception in thread "main"
org.jdom.input.JDOMParseException: Error on line 2: Document is
invalid: no grammar found.
 
E

Ed_Zep

Removed an older version of ant - works fine now.

Thanks.

Ed.


I think you have to put $JAVA_HOME/bin in the PATH instead of $JAVA_HOME



Newbie said:
Hi,

we're running Linux RH 3.0, with a JDK of 1.3.1_04 and Apache Ant
version 1.5.2-23.

There is a version of java installed with Oracle Apps Server 9.0.4 but
I've set the $JAVA_HOME to be /usr/java/jdk1.3.1_04 and the $PATH has
this directory as the first entry.

When I try to run:
ant create.wizard -verbose I get the output below.

Typing whereis java gives:
java: /usr/bin/java /usr/share/java

Typing which java gives:
/usr/java/jdk1.3.1_04/bin/java

Hope someone can help.

Many thanks.

Ed.

-------------------------------------------------------------------
[java] Executing '/usr/bin/gij-ssa' with arguments:
[java] '-classpath'
[java]
'/u02/workflow/DEV/classes:/u02/workflow/DEV/lib/jdom/jdom.jar:/u02/workflow/DEV/lib/jdom/jaxen-core.jar:/u02/workflow/DEV/lib/jdom/jaxen-jdom.jar:/u02/workflow/DEV/lib/jdom/saxpath.jar:/u02/workflow/DEV/lib/xerces/xerces.jar:/u02/workflow/DEV/lib/workflow/workflow.jar:/u01/app/oracle/product/904_mid/j2ee/home/oc4j.jar:/u02/workflow/DEV/lib/castor/castor.jar:/u02/workflow/DEV/lib/CommonUtil/CommonUtil.jar:/u02/workflow/DEV/lib/log4j/log4j.jar:/u02/workflow/DEV/lib/jaf/activation.jar:/u02/workflow/DEV/lib/javamail/mail.jar:/u02
/workflow/DEV/warClasses/WEB-INF/classes'
[java]
'com.sct.workflow.configuration.WorkflowConfigurationHelper'
[java] '/u02/workflow/DEV/config/configuration.xml'
[java] '/u02/workflow/DEV/config/WorkflowConfiguration.xsd'
[java]
[java] The ' characters around the executable and arguments are
[java] not part of the command.
[java] Exception in thread "main"
org.jdom.input.JDOMParseException: Error on line 2: Document is
invalid: no grammar found.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top