Powershell Environment Setup <p>This is a very quick question because I'm nervous to break my batch file/java environment or make my laptop explode.</p> <p>I used to used to execute a .bat file from cmd.exe to set my environment to java which worked and that but now I've upgraded to Windows Powershell.</p> <p>I've created a Powershell .ps version of the .bat file to set my java environment path as bellow.</p> <pre><code>echo "setting environment to Java" $env:path="$env:Path;C:\Program Files\Java\jdk1.8.0\bin" </code></pre> <p>This works fine but I was wondering if it's possible to include a second line to add the JDBC to the classpath as well</p> <pre><code>echo "setting environment to Java" $env:path="$env:Path;C:\Program Files\Java\jdk1.8.0\bin" $env:path="$env:Path;C:\Program Files (x86)\MySQL\MySQL Connector J" </code></pre> <p>just wanted a second opinion to avoid breaking everything (which I have done before).</p> <p>Will this end up setting my environment and adding an additional classpath or will it just overwrite the environment with just the MySQL Connector path.</p>