This is a very quick question because I'm nervous to break my batch file/java environment or make my laptop explode.
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.
I've created a Powershell .ps version of the .bat file to set my java environment path as bellow.
echo "setting environment to Java"
$env:path="$env:Path;C:\Program Files\Java\jdk1.8.0\bin"
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
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"
just wanted a second opinion to avoid breaking everything (which I have done before).
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.