How to set Java path using batch file
<p>So I am new to using and creating batch files. I was wondering what is wrong with my file. I want to make it where it sets the path so I can compile my java file in cmd. Here is my code</p>

<pre><code>@echo off
:start

rem set path="c:\Program Files\java\jdk.1.8.0_102";
set path=%path%;c:\Program Files\java\jdk.1.8.0_102
cls
pause
rem goto start
</code></pre>

<p>I am not to sure which one is right between the 2 paths so I was just testing.</p>