1. Find where jre (java) is installed on your system. Default locations:
Java6:
- Windows 32bit + java 32bit: C:\Program Files\Java\jre6\bin\
- Windows 64bit + java 64bit: C:\Program Files\Java\jre6\bin\
- Windows 64bit + java 32bit: C:\Program Files (x86)\Java\jre6\bin\
- Windows 32bit + java 32bit: C:\Program Files\Java\jre7\bin\
- Windows 64bit + java 64bit: C:\Program Files\Java\jre7\bin\
- Windows 64bit + java 32bit: C:\Program Files (x86)\Java\jre7\bin\
save below code as "check_path.bat" and run it:
Code: Select all
@echo off
echo %PATH%
pause
3. http://www.java.com/en/download/help/path.xml
By "adding the location of the class to the value" they mean "adding path to your java directory at the end, separated from other entires with semicolon"
Like here (dont copy this! It's only sample and using it may break your system):
4. Correct run.bat depending what you want:C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files (x86)\Java\jre7\bin\
- a) start ender without the console window in background:
b) start ender with console window to show errors:
Code: Select all
start javaw -Xms256m -Xmx512m -jar haven.jar moltke.seatribe.se -r ./resc) start ender and save all errors to a logfile you can post here (Console window stays open, showing path to the current log):Code: Select all
java -Xms256m -Xmx512m -jar haven.jar moltke.seatribe.se -r ./res pauseCode: Select all
@ECHO OFF SET dateTemp=%date% SET dateTemp=%dateTemp:/=-% SET dateTemp=%dateTemp: =% SET timeTemp=%time% SET timeTemp=%timeTemp::=.% SET timeTemp=%timeTemp:,=.% SET timeTemp=%timeTemp: =% IF NOT EXIST logs MKDIR logs SET logPath="logs\%dateTemp% %timeTemp%.log" ECHO Logfile: %logPath% java -Xms256m -Xmx512m -jar haven.jar moltke.seatribe.se -r ./res > %logPath% 2>&1 call :getFilesize %logPath% IF %filesize% == 0 DEL %logPath% :getFilesize set filesize=%~z1 exit /b


