File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Michele Smith
Ranch Hand
Posts: 421
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 421
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic