• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic