wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 412
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: 412
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
 
Don't get me started about those stupid light bulbs.
 
subject: 'java' is not recognized as an internal or external command, operable program or batch file.
 
Similar Threads
standalone application question
Setting the classpath
Problem with j2sdkee1.3.1
why cant i start my program in the console?
Running code