ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > Living Room

java -version -> 'java' is not recognized as an internal or external

(1/2) > >>

kalos:
hello

in cmd, I type java -version
and I get this:
'java' is not recognized as an internal or external command, operable program or batch file.

how do I fix this?
there are several dodgy solutions on the web, but I need a legit and tested one

thanks!

40hz:
Check your PATH to see if Java is installed properly. If in doubt, try uninstalling, rebooting, and installing it again.

4wd:
Java doesn't install itself into the PATH environment, at least not on any of my machines.

To get it from the CLI you'd need to CD to its installed directory or use the full path to the command.

I'm guessing Java compiled programs already know how to find it via the registry or other means.

EDIT: My bad, it does, you just have to open the CLI in Admin mode first :-[

kalos:
sorry, how do I check the PATH?
what is CLI?

4wd:
CLI = Command Line Interface

Run as Administrator



NOTE: I don't have Java installed.

Navigation

[0] Message Index

[#] Next page

Go to full version