Upgraded to Windows 8.1, javac Not Longer Found

  • Context: Java 
  • Thread starter Thread starter Cod
  • Start date Start date
  • Tags Tags
    Nvidia Windows
Click For Summary
SUMMARY

The user experienced issues with the Java JDK (version 7u40) after upgrading to Windows 8.1 Pro, specifically receiving a "javac is not recognized" error. Despite confirming that the Environmental Variables were set correctly, the problem persisted. The solution involved completely re-downloading and reinstalling the JDK, which resolved the issue without needing to modify the PATH variables. This indicates that the initial installation may have been corrupted.

PREREQUISITES
  • Understanding of Java Development Kit (JDK) installation
  • Familiarity with Windows Environmental Variables
  • Basic command line usage in Windows
  • Knowledge of Java compiler (javac) functionality
NEXT STEPS
  • Research how to properly set Environmental Variables in Windows
  • Learn about troubleshooting Java JDK installation issues
  • Explore methods for verifying JDK installation integrity
  • Investigate differences between JDK versions and their compatibility with Windows
USEFUL FOR

Java developers, software engineers, and IT professionals troubleshooting Java installation issues on Windows systems.

Cod
Messages
324
Reaction score
4
I upgraded to Windows 8.1 Pro today and reinstalled all of my software. I'm having issues with the new Java JDK (v40). I can't compile anything on the command line. I keep getting the following error message:

javac is not recognized as an internal or external command

So I went back in and checked the Environmental Variables and everything is set correctly. When I check the PATH via the command prompt, I get the following:

C:\WINDOWS\system32>path
PATH=C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Clien
t\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:
\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:
\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\
Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Int
el(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Man
agement Engine Components\IPT;C:\Program Files (x86)\MATLAB\R2012a Student\bin;C
:\Program Files\Condusiv Technologies\ExpressCache\;C:\Program Files\Java\jdk1.
7.0_40\bin;


I triple checked and everything is using the correct path. I even reinstalled the JDK and get the same error.

Any thoughts?
 
Technology news on Phys.org
It looks to me like there's an extra space in your path, right after jdk1. and before 7.0 etc. If that doesn't fix things, I would make sure that the java compiler is in that directory, and not, say, in Program Files (x86).
 
The space wasn't "really there". Just how it pasted after copying the command line. Turns out I finally got it working. I completely re-downloaded and installed the JDK and everything worked fine (didn't even have to change the variables). Apparently the first download was corrupted somehow.

Thanks for the help though.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
22
Views
7K
Replies
17
Views
6K
  • · Replies 37 ·
2
Replies
37
Views
7K