qqxyz
qqxyz

Reputation: 31

Windows cmd java output nothing

Today the program could not run in Windows Server 2008 r2. And when I run java.exe in windows cmd, I got nothing output, just like the img, java.exe not working, javac is workding, I rename java.exe to c2.exe , then c2.exe is working.

Is there any suggestion?

No output Java in path

Upvotes: 3

Views: 4082

Answers (1)

geekTechnique
geekTechnique

Reputation: 890

  1. Open windows search and type in "Edit the System Environment Variables", or just "environment".

  2. Under the advanced tab, click on the "Environment Variables" button.

  3. In the top portion of the dialog, scroll down until you see "Path", and click on edit.

  4. Look for whatever directory your java path is pointed to and click delete.

  5. Click "new", then click browse, and locate the java.exe file. Make sure you don't change the original file name.

  6. If this doesn't work, uninstall java and get the latest version for your system from the oracle website, and add the install location to the system path as described in the previous steps.

Upvotes: 2

Related Questions