Environment Variable Keeps resetting

Steff 6 Reputation points

I have set up a Java Web Application web site on my virtual machine and one of the things that has to happen is you need to have a system variable declared.

This lets java know where your Runtime-Environment is installed. I keep re-adding it and the virtual machine keeps removing it causing Tomcat to stop working.

Please provide me with assistance.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
4,608 questions
No comments
1 vote

2 answers

Sort by: Most helpful
  1. Alexander Nordbø 1 Reputation point

    To make sure an environment variable "sticks" click the Start button, Right Click "Computer" and choose Properties. Click Advanced System Settings and then Environment Variables... In the dialog that comes up, under the System Variables section double click on the Path environment variable. Scroll to the end, add a semi-colon, and then add the path to your executable.

    You will now have to restart any process that was already running.

  2. StefanVesely 1 Reputation point

    So what ended up helping is just restarting the virtual machine a bunch of times.

    No comments