Environment Variable Keeps resetting

Steff 6 Reputation points
2021-11-09T12:30:59.413+00:00

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.
7,158 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Alexander Nordbø 1 Reputation point
    2021-11-09T12:36:08.893+00:00

    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
    2021-12-15T14:01:35.72+00:00

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

    0 comments No comments