• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 275
  • Last Modified:

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

hi am having this error when seting my java home am in window 7
[code]C:\Users\userpc>java -version
Error occurred during initialization of VM
Unable to load native library: Can't find dependent libraries


C:\Users\userpc>java -version
Error occurred during initialization of VM
Unable to load native library: Can't find dependent librarie

C:\Users\userpc>set JAVA_HOME=C:\java6

C:\Users\userpc>SET PATH=PATH%JAVA_HOME%\BIN;

C:\Users\userpc>JAVA -VERSION
'JAVA' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\userpc>java -version
'java' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\userpc>set JAVA_HOME=C:\java6

C:\Users\userpc>SET PATH=PATH%JAVA_HOME%/BIN;

C:\Users\userpc>java -version
'java' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\userpc>SET PATH=PATH%JAVA_HOME%;

C:\Users\userpc>java -version
'java' is not recognized as an internal or external command,
operable program or batch file.

Open in new window

[/code]
0
chalie001
Asked:
chalie001
  • 2
2 Solutions
 
Pawan KumarDatabase ExpertCommented:
I think you need to first go to Java folder.

Pls try

CD C:\java6

and try commands.
0
 
Flabio GatesCommented:
Have you tried reinstalling java?
0
 
CEHJCommented:
Error occurred during initialization of VM
Unable to load native library: Can't find dependent libraries
tells you that your installation is corrupt. Uninstall it and then install the latest version
0
 
Flabio GatesCommented:
Question inactive
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now