How to set a env permanent from cmd?
Hello guys!I'm programming in Java most of my work.
Right now we switch between 2 projects. One using 1.4 and one is using 1.6.
Since I use maven I need to to have JAVA_HOME set to the version to use.
I would love to get a bat script that does:
set JAVA_HOME=path\to\1.4
and an other script that does:
set JAVA_HOME=path\to\1.6
...so it gets easy to switch just by clicking a each bat-file.
But a problem seems to be that the change is not permanent.
If I run the same command from a cmd and then closes the cmd, the change is not still there when I open I new cmd.
Hope you see my point.
So if you got any idea how to solve this it would be great.
Best regards
Fredrik