aspose file tools*
The moose likes Beginning Java and the fly likes 'java' is not recognized as an internal or external command, operable program or batch file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark " Watch " New topic
Author

'java' is not recognized as an internal or external command, operable program or batch file.

Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 421
Hello I am trying to run a little batch file and even though Java is on the system, the application cannot find it.

Any ideas?
=============================================
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

Z:\>d:

D:\>cd d:\OracleConverters\LoadDocumentsProgram

d:\OracleConverters\LoadDocumentsProgram>loaddocuments.bat

d:\OracleConverters\LoadDocumentsProgram>rem This batch file loads documents int
o the Nhinc document repository (for release 2.3) - check readme.txt for setup

d:\OracleConverters\LoadDocumentsProgram>java -Xmx1230m -cp .;/antlr-2.7.6.jar;a
sm-attrs.jar;asm.jar;c3p0-0.9.1.2.jar;cglib-2.1.3.jar;commons-collections-2.1.1.
jar;commons-logging-1.1.1.jar;DocumentRepository.jar;dom4j-1.6.1.jar;ehcache-1.2
.3.jar;hibernate3.jar;jdbc2_0-stdext.jar;jta.jar;log4j-1.2.15.jar;mysql-connecto
r-java-5.1.8-bin.jar;NhincLib.jar;ojdbc6.jar gov.hhs.fha.nhinc.repository.util.D
ocumentLoadUtil
'java' is not recognized as an internal or external command,
operable program or batch file.

d:\OracleConverters\LoadDocumentsProgram>pause
Press any key to continue . . .

d:\OracleConverters\LoadDocumentsProgram>
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 421
Figured it out, I had to set my environment variable to point to the JRE (Path variable).

That did the trick. And thanks anyways.

Michele
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 'java' is not recognized as an internal or external command, operable program or batch file.