1.    09 Mar 2016 #1
    Join Date : Mar 2016
    Posts : 1
    Windows 10

    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 System SpecsSystem Spec

  2.    09 Mar 2016 #2
    Join Date : Apr 2014
    Space coast of Florida
    Posts : 3,780
    Windows 10 Pro X64 14393.105

    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 System SpecsSystem Spec


Similar Threads
Thread Forum
Environment Variables in Windows 10
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....
How to output day of week to variable in batch
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...
General Support
Continuity of OS environment
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....
General Support
recovery environment?
Hi guys; what is "recovery environment" that comes up when booting win 10TP?
General Support
Solved A possible issue when setting up a folder in the environment path...
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...
General Support
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 11:45.
Find Us
Twitter Facebook Google+

Windows 10 Forums