Did you use the new batch file? You only need one version on your machine, just the batch file does this which should scan for the 4 possible version you have installed,OtaXou wrote:It wouldn't work on my 64bit Windows 7 with just the 32bits version installed, Command Prompt was always saying that java wasn't a valid command... Fixed with the installation of the 64bits version in addition to the 32bits version installed.JunBansyoya wrote:Actually with the new release the new batch script looks for the 32 bit version of java if you are on a windows 64-bit machine, in addition to the 64-bit version. Or at least it should.OtaXou wrote:I will add something that may be useful to other dothackers: If you're on Windows 7 64Bit (or any other 64bit systems actually), be sure to install the 64Bits/x64 version of Java.
Without it, even if you got the x86 (32bits) version of Java installed on your system, it will not work.
EDIT: The missing parts I had during the intro are gone, and I was able to play the first hour easily... I can't thank you enough for this. I really can't.
With what you're saying, I guess you need the 64bits versions for Windows 7 to understand that you can run Java, and the 32bits version to actually do the stuff ?
Code: Select all
for %%X in (java.exe) do (set FOUND=%%~$PATH:X)
IF DEFINED FOUND (
echo "Java already in PATH"
goto error_check
) ELSE (
echo "Java is not in PATH, trying to add it now"
)
IF EXIST C:\Program Files\Java\jre7\bin\java.exe (
set PATH=%PATH%;C:\Program Files\Java\jre7\bin
echo "Java 7"
goto error_check
)
IF EXIST C:\Program Files (x86)\Java\jre7\bin\java.exe (
set PATH=%PATH%;C:\Program Files (x86)\Java\jre7\bin
echo "Java 7 32-bit"
goto error_check
)
IF EXIST C:\Program Files\Java\jre6\bin\java.exe (
set PATH=%PATH%;C:\Program Files\Java\jre6\bin
echo "Java 6"
goto error_check
)
IF EXIST C:\Program Files (x86)\Java\jre6\bin\java.exe (
set PATH=%PATH%;C:\Program Files (x86)\Java\jre6\bin
echo "Java 6 32-bit"
goto error_check
)
Echo "Java is not installed please go to java.com to download the most recent version, if it is installed but placed in a different directory make sure its added to your system PATH variable and run this again"
goto end
:error_check
IF EXIST dothack.jar (
Echo "Patch software found: dothack.jar"
) ELSE (
Echo "Patch software not found: dothack.jar"
set ERROR=1
)
IF EXIST patch\ (
Echo "Patch folder found: patch\"
) ELSE (
Echo "Patch folder not found: patch"
set ERROR=1
)
IF EXIST data\ (
Echo "Source data found: data\"
) ELSE (
Echo "Source data not found: data\"
set ERROR=1
)
if defined ERROR (
echo "Vital components missing, please check current folder"
goto end
) ELSE (
goto java_command
)
:java_command
java -jar dothack.jar patch data\ patch\
:end
pause
Making sure you have have at least one version of java in your system path before running, if it didn't work could you tell me which version of 32bit java you had installed, including the minor numbers. It doesn't check if you installed the Java as part of the JDK(Java Developer Kit), but if you have that odds are it is already in the system path.