From: Sels W. <Wan...@cr...> - 2005-06-30 09:08:36
|
Hi Petter, =20 I believe the problem you are seeing is not related to an incorrect ANT_HOME (although it still might be incorrect). When the build.bat reports the following error:=20 "org.apache.tools.ant.Main is not recognized as an internal or external command operable command or batch file" , it means that it is trying to execute a java class, instead of the java.exe executable (otherwise a ClassNotFoundException whould have been thrown). In a command prompt, could you please do a "set path" and post the results? =20 Kind Regards, =20 Wannes =20 =20 _____ =20 From: ebx...@li... [mailto:ebx...@li...] On Behalf Of Petter Sandvik Sent: woensdag 29 juni 2005 16:35 To: ebx...@li... Subject: [Ebxmlrr-tech] Deployment to Tomcat (Windows platform) =20 Hi, We still have problems. =20 Apache Ant 1.6.5 is installed and the path to Ant is set in windows (as a system variable in the Environment Variables menu from the Controll Panel) In my new (CVS) omar directory (Thanks to you the CVS worked perfect) I have written in build properties ANT_HOME=3DC:/apache-ant-1.6.5 We have tried both Tomcat 5.0-30 and Tomcat 5.5.9 (which one is recommended?). =20 The error message we get when we type build deploy in the Command Promt is: "org.apache.tools.ant.Main is not recognized as an internal or external command operable command or batch file" If I write build deploy in another directory the message is just: 'build' is not recognized as an internal or external command operable command or batch file" Does it indicate something wrong with the path? Is it necessary to shut down Tomcat before the build deploy command is written? =20 =20 Regards Petter Sandvik EdiSys AS =20 |
From: Petter S. <Pet...@ed...> - 2005-06-30 14:44:39
Attachments:
build.txt
|
Hi, I have tried to let %JAVACMD% points to a valid path (set JAVA_HOME=3DC:\Program Files\Java\jre1.5.0_03) at the bottom of the enclosed build.bat (build.txt). The syntax is obviously wrong. Could anyone adjust it? Kind regards Petter Sandvik=20 EdiSys AS -----Original Message----- From: Boaz Carmeli [mailto:BO...@il...]=20 Sent: 30. juni 2005 15:16 To: Petter Sandvik Cc: ebx...@li... Subject: RE: [Ebxmlrr-tech] Deployment to Tomcat (Windows platform) Hi Petter, From the command line you send and from what you are describing it seems that your JAVACMD variable is empty. That why when you put it in "%JAVACMD% " you get the message: '""' is not recognized .... and when there is no "" (i.e. %JAVACMD%) it is parsed into an empty string and then the cmd processor looks for the next string which is org.apache.tools.ant.Main that can not be found (not a command) At the bottom line - make sure that your %JAVACMD% points to a valid path (set your JAVA_HOME variable) or just write '"c:\Program Files\Java\jre1.5.0_03\bin\java" instead. Regards Boaz Carmeli =20 "Petter Sandvik" <Petter.Sandvik@e disys.no> To=20 Sent by: <ebx...@li...=20 ebxmlrr-tech-admi > n...@li...urcefor cc=20 ge.net =20 Subject=20 RE: [Ebxmlrr-tech] Deployment to 30/06/2005 15:57 Tomcat (Windows platform) =20 =20 =20 =20 =20 =20 Hi, When I replace %JAVACMD% with "%JAVACMD%" and then type "build deploy" the error message is: 'build' is not recognized as an internal or external command operable command or batch file" With the original %JAVACMD% the error message is: ""org.apache.tools.ant.Main is not recognized as an internal or external command operable command or batch file" (which is a bit "closer" I believe). Since I now have built Omar directly from the CVS repository I type "build compile" in order to compile source code and generate the directories <omar_home>/build/lib/classes. But the same error message appear: "org.apache.tools.ant.Main is not recognized as an internal or external command operable command or batch file" Kind regards Petter Sandvik EdiSys AS -----Original Message----- From: Fabian Ritzmann [mailto:rit...@us...] Sent: 30. juni 2005 14:02 To: Petter Sandvik Cc: ebx...@li... Subject: Re: [Ebxmlrr-tech] Deployment to Tomcat (Windows platform) On 30.06.2005, at 12:37, Petter Sandvik wrote: > Thank you for trying to help. > Java is not my word, hence it might be wrong Java program defined in > the path. I have also installed: Java(TM) 2 SDK, Standard Edition > Version 1.4.2 > (In C:\Program Files\Java\jdk). > > Here is the result of the "set path" in build.bat. Open build.bat with an editor, go to line 45 and replace %JAVACMD% with "%JAVACMD%". Does that help? Fabian [attachment "Command Prompt.doc" deleted by Boaz Carmeli/Haifa/IBM] |