• Log in or sign up for an account here: https://www.sythe.org/login

Botclient not sensing Java.

wr3ck3d

Kill One Man to Save a Thousand.

Banned
Joined
Feb 6, 2009
Sythe Gold
0
Messages
819
Location
Wouldn't you like to know, stalker.
Botclient not sensing Java.
Hey guys, just recently got a new computer, and I downloaded the botclient right away. But as I went to install it, it would say "java not recognized as an internal or external command, operable program or batch file". Now, I was told I had to change the path, but as soon as I tried to do that I just confused myself. Anyone got any advice?
 
Botclient not sensing Java.
you might need to get Java Development Kit (JDK) and Java Runtime Environment (JRE)

I don't think the path and classpath variables make a difference here.
 
Botclient not sensing Java.
Install Java JDK.

Then open notepad put this into it

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=

IF DEFINED jdkv (
    FOR /F "skip=2 tokens=3,4" %%A IN ('REG QUERY "%KEY_NAME%\%jdkv%" /v JavaHome 2^>NUL') DO SET jdk=%%A %%B
) ELSE (
    FOR /F "tokens=*" %%G IN ('DIR /B "%ProgramFiles%\Java\jdk*"') DO SET jdk=%%G
)

SET jdk=%jdk%\bin
SET javac="%jdk%\javac.exe"

IF NOT EXIST %javac% (
    javac -version 2>NUL
    IF "%ERRORLEVEL%" NEQ "0" GOTO :notfound
) ELSE (
    GOTO :setpath
)
GOTO :eof

:notfound
ECHO JDK is not installed, please download and install it from:
ECHO http://java.sun.com/javase/downloads
ECHO.
PAUSE
EXIT

:setpath
SET PATH=%jdk%;%PATH%
GOTO :eof

Goto File > Save as > Save as type select all types. > Filename FindJDK.bat and click save and then run it.
Then it should run. If not restart your PC.


This thing is from RSbot if i remember correctly.
 
Runescape Gamblingrunescape gambling
Back
Top