Problem while accessing Windows 8 registry

Asked By 0 points N/A Posted on -

Hi there,

I have been trying to modify my registry in order to create bin directory  with JDK7 and I feel frustrated since the CMD won't recognize Java commands until the bin directory is created, how do I go about doing this, and why do JDK7 require the bin directory?

Answered By 0 points N/A #199544

Problem while accessing Windows 8 registry



We can follow a simpler approach to solve the problem you are facing instead of modifying registry settings as registry modification is not recommended.

You can solve the problem by adding a path variable. We can either path every time or set it permanently. You can execute the Java code by simply specifying the full path of the executable every time you run it like:

C:> "C:Program FilesJavajdk1.7.0binjavac"


You can alternatively set the full Path Variable which would look something like:

C:Program FilesJavajdk1.7.0bin.


Steps to add Path Variable in Windows:


1)   Click Start, go to System under Control panel

2)   Go to “Environmental Variables” under the Advanced tab

3)   Add the location of the bin folder of your JDK installation for the PATH variable in System Variables. This would generally look like:


C:WINDOWSsystem32;C:WINDOWS;C:Program FilesJavajdk1.7.0bin

Login/Register to Answer

Related Questions