N/APosted on - 12/05/2013
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?
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" MyClass.java
You can alternatively set the full Path Variable which would look something like:
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: