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. environment variables

    in Windows 10 Software and Apps
    environment variables: Cant get the modal window when editing my system variables from the environment variables areai get this windowand i want this window https://answers.microsoft.com/en-us/windows/forum/all/environment-variables/07d24fc8-345d-4062-8169-3fa9bb16a049
  3. environment variables

    in Windows 10 Customization
    environment variables: Hi, another question from a noob. I see in my PC environment variables at the bottom of the list a sole entry called ZES_ENABLE SYSMAN 1 .I am a sole PC home windows 10 user who only really games a lot. Should this be here, i can only find entries for this in the...
  4. set path in windows 10 for environment variables

    in Windows 10 Customization
    set path in windows 10 for environment variables: Set path in windows 10 https://answers.microsoft.com/en-us/windows/forum/all/set-path-in-windows-10-for-environment-variables/b608e15a-4994-4d1a-ae4e-1d220293dc22
  5. Multiple PATH environment variables

    in Windows 10 Ask Insider
    Multiple PATH environment variables: [ATTACH] There's a package that I want to install and it says in order to install it, it needs to be added to the PATH. Upon checking my environment variables, I noticed there are three of them as shown:...
  6. regarding path variable of user variable of environment variable

    in Windows 10 Customization
    regarding path variable of user variable of environment variable: please help me fast, I accidentally deleted path variable of user variable ..... I want to restore it. the real situation is I cannot run android studio project and it shows error - " unable to start daemon process............This problem might be caused by incorrect...
  7. environment variable

    in Windows 10 Customization
    environment variable: What would happen when we deleted all the environment variable system directory. https://answers.microsoft.com/en-us/windows/forum/all/environment-variable/723a4cb6-5baf-4907-a56b-614f35d77da5
  8. how to reset environment variables

    in Windows 10 Network and Sharing
    how to reset environment variables: when I am trying to execute commands in cmp it through error like it is not recognized as internal or external command,operable program or batch file. even though i am done modifications in path....
  9. 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.)...
  10. 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