Windows 10: Reset Java Environment Variable Path

Discus and support Reset Java Environment Variable Path in Windows 10 Support to solve the problem; 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... Discussion in 'Windows 10 Support' started by twotrident, Mar 8, 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:

    Reset Java Environment Variable Path [​IMG]


    Second try gave me this (I can't remember how):

    Reset Java Environment Variable Path [​IMG]


    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.

    :)
     
    twotrident, Mar 8, 2016
    #1
  2. S&amp;B23 Win User

    Wrong Variable Box Opens

    Running Windows 10, 64 bix

    Running JDK: jdk1.7.0_80

    I am installing Java SDK (installed, not a problem).

    So I am trying to configure my PATH settings to finish out the install of the Java SDK and I am trying to do it for Windows 10.

    Problem is when I get to the "Environment Variables" and set the PATH variable. In a nutshell, I am getting a different window then what the directions show/say.

    For example:

    Here are all of the steps I am trying to complete: Java-Buddy: Install JDK 8 on Windows 10, and set Path

    And on the last steps, when I have clicked through to System Properties> Environment Variables box>

    Reset Java Environment Variable Path [​IMG]

    Click on the word "PATH" in the lower box labeled "System Variables"

    Reset Java Environment Variable Path [​IMG]

    then click on the "edit" button, the box that comes up for me (this happens on my laptop and PC :-/ ) is the "Edit Environment Variable" box!!! :-(

    Reset Java Environment Variable Path [​IMG]

    It should open a 2 line window "Edit System Variable" and have 2 lines....Variable Name & Variable Value.

    ++Note++ This is a screen shot of what should open, not what happens for me.

    Reset Java Environment Variable Path [​IMG]

    Again I am getting the same behavior from installing on my laptop and my desktop.

    ----------------------------------------------------------------------

    When I run the command line prompt "java" (no quotes), it runs fine

    When I run the command line prompt "java -version" (no quotes), I get these 3 lines returned:

    Reset Java Environment Variable Path [​IMG]

    When I run the command line prompt "javac" (no quotes),

    Reset Java Environment Variable Path [​IMG]


    Thanks for your time and expertise to a noob! I know, we were all there once
    Reset Java Environment Variable Path [​IMG]
     
    S&amp;B23, Mar 8, 2016
    #2
  3. Maria Fab Win User
    Regarding path in environment variables

    Hello Siva,

    To recover the deleted path in your system, we suggest that you restore your PC from a system restore point. See
    Recovery options in Windows 10. It provides multiple solutions for you to undo the changes made on your PC prior to having
    the issue. Click on Restore from a system restore point. Follow the instructions provided.

    Note: Before performing any of the recovery options in Windows 10, always make sure that you back up all your important files and data.

    Hope this answers your query. Let us know if you need further assistance.
     
    Maria Fab, Mar 8, 2016
    #3
  4. Ztruker Win User

    Reset Java Environment Variable Path

    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.
     
    Ztruker, Mar 9, 2016
    #4
Thema:

Reset Java Environment Variable Path

Loading...
  1. Reset Java Environment Variable Path - Similar Threads - Reset Java Environment

  2. Setting path variable in Environment variables Windows 10

    in Windows 10 Customization
    Setting path variable in Environment variables Windows 10: How can I stack up multiple path variables? Currently, it overwrites the old one when I try to edit. (I believe mindless updates are bad and updates should only happen when it is reasonably certain they will improve usability, and not just so that some people have a job.)...
  3. User Environment Variable

    in Windows 10 Software and Apps
    User Environment Variable: Created an User Environment variable in Environment variable page in UI. It is seen in both UI and command prompt(Using set command). After restart it is not seen in command prompt when set command is used. Please help....
  4. Environment Variables

    in Windows 10 BSOD Crashes and Debugging
    Environment Variables: what will happen if i accidentally delete one of those environment variables without realizing it ? and how to fix it ? https://answers.microsoft.com/en-us/windows/forum/all/environment-variables/fedbdf36-ce8e-4861-a775-1dc62dd1c67e
  5. environment variables missing

    in AntiVirus, Firewalls and System Security
    environment variables missing: i also got error message 80007000cb https://answers.microsoft.com/en-us/protect/forum/protect_defender-protect_updating-windows_10/environment-variables-missing/dad217b7-71e5-47d8-8569-4ab5e6380287
  6. i accidently deleted system environment variable path

    in Windows 10 Support
    i accidently deleted system environment variable path: i accidently deleted the system environment variable path value now i cant run my java or while typing javac in CMD itit shows javac is not recognized as an internal or external command, operable program or batch file." please tell how do i get the real path 70122
  7. Automated modification of PATH environment variables

    in Windows 10 Performance & Maintenance
    Automated modification of PATH environment variables: The following archive contains scripts to safely edit the "Path" values in HKCU and HKLM. Useful to run after a new installation. path.7z New path inclusions are specified in "path.txt". Run "path.bat" to commit any changes. 103736
  8. Is there a universal variable for the path to a program

    in Windows 10 Support
    Is there a universal variable for the path to a program: I have noticed on several occasions that during the installation of a program downloaded from the internet that there was some sort of variable in the path to the installation folder I would just accept the default and the installation went OK. I assumed that the variable...
  9. Environment Variables in Windows 10

    in Windows 10 Tutorials
    Environment Variables in Windows 10: How we use this? For example tried %OS% on CMD, PS and RUN but not work? 3234
  10. System environment variable won't stick

    in Windows 10 Support
    System environment variable won't stick: Running Win10 Home on an Acer Spin 3, 64bit, i7cpu. I try to add a path to the system environment variables by: 1. Control Panel > System > Advanced system settings > Advanced tab > Environment variables 2. The "Environment Variables" window opens. 3. In the "System...