Windows 10: Reset Java Environment Variable Path

  1.    09 Mar 2016 #1

    Reset Java Environment Variable Path


    I had to restore my PC to factory settings because of a virus (maybe overkill, not sure) and reinstalled the Java JDK and editing the Environment Variable for Path.

    First try gave me this:
    Click image for larger version. 

Name:	Path.jpg 
Views:	68 
Size:	59.3 KB 
ID:	68432

    Second try gave me this (I can't remember how):
    Click image for larger version. 

Name:	Path1.png 
Views:	69 
Size:	12.3 KB 
ID:	68437

    I'm trying to restore the Path variable value to its default state so that I may try again from the beginning... In Command Prompt "javac HelloWorld.java" didn't work for both the first and second scenario. Was I to add "; C:\<User>\Documents\Java\;" after the first scenario's "bin" path for my compiler to function? That directory is where my HelloWorld.java file is located.

    Regardless, I'd like to reset my Path to its original state so I may try again. Any assistance is appreciated as establishing the correct path wasn't nearly as complicated earlier this semester...

    Edit: In a squirt of inspiration I tried changing "jre" in scenario 2 to "jdk" but that was fruitless. Resetting it to its original value would be the best course of action right now.
      My ComputerSystem Spec


  2. Posts : 5,007
    Windows 10 Pro X64 15063.138
       09 Mar 2016 #2

    Unless you have a backup of your registry, the only way I can think of to restore PATH to it's original state is to do a System Restore to before you changed it.
      My ComputersSystem Spec


 

Related Threads
General Tips Environment Variables in Windows 10 in Tutorials
Complete List of Environment Variables in Windows 10 Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer. The variables can be used both in scripts and on the command line....
Hi all, I am trying to write a batch file in Windows 10 to output day of week (Monday, Tuesday etc) to variable do that I can do certain procedures on differnt days o the week and am having major problems. If I type DATE /T at command prompt I...
Continuity of OS environment in General Support
Hello everybody, I want to understand more about how Windows 10 manages windows. Let's say that, in a hypothetical scenario, I have just started a particularly demanding program. The window appears, but immediately becomes unresponsive....
recovery environment? in General Support
Hi guys; what is "recovery environment" that comes up when booting win 10TP?
The other day I was setting up this: C:\Python27 in the environment variable path so I can access Python from the command prompt. Usually in the previous builds and in Win8/Win7 you just perform the set up in the PC/Computer properties and when...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 07:41.
Find Us