Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Accidentally deleted PATH, trying to set up Environment Variable  RSS feed

 
Konstantin Khairulin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey everyone. Today I started reading Head first Java and I needed to set up Java for my PC. Unfortunately things went horribly wrong. First, I got this error http://imgur.com/a/W61l5 after installing latest version of Java SDK and trying to run Java Mission Control
Then, I tried to fix it by updating the PATH Environment Variable and ended up deleting the original information it had in it. Now I have no idea how to restore it and how to fix the error above. I'm using Windows 7 x64 I'm new to programming so any advice would be very appreciated.

P.S. Sorry for my English, not my native language
 
Norm Radder
Rancher
Posts: 2052
26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many products update the PATH variable when they are installed. 

I don't know if the OS backs up the Environment variables.  If so, then you could restore from there.

Perhaps you can construct some of the PATH's contents from other peoples PATH variable's contents.

What is printed when you open a command prompt window and enter: PATH
 
Pete Letkeman
Ranch Hand
Posts: 184
8
Android Chrome IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do not worry, you are not alone and many people have done this.

If you use Google and search for

windows 7 restore path environment variable

You will see that there are plenty of resources that can help you out. That is not to say that the community here on the forums cannot help you out, I'm sure that plenty people can. However it may be faster to find a solution using Google.
 
Knute Snortum
Sheriff
Posts: 3842
91
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!  Your English is as good as many in the US (better than some!)

If you haven't shutdown or rebooted your computer, don't!  You may be able to get your original PATH from one of the processes still running.  If you're lucky enough to have another command line running, try executing echo %PATH%.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!