This is for FindJDK.bat, make a backup first before you edit the file.
Everything else is the same, I removed stuff and changed the line below in bold. You'll have to change it to your own path, I'm not sure what it is.
|
Code:
|
@ECHO OFF
ECHO Looking for JDK
SET KEY_NAME=HKLM\SOFTWARE\JavaSoft\Java Development Kit
FOR /F "tokens=3" %%A IN ('REG QUERY "%KEY_NAME%" /v CurrentVersion 2^>NUL') DO SET jdkv=%%A
SET jdk=C:\Program Files\Java\jdk1.6.0
SET jdk=%jdk%\bin
SET javac="%jdk%\javac.exe"
REM ... everything else is the same from here on....... |
Hope it works...
btw, you are using vista?