Jump to content
How to install OSBot


Step 1
You need to have Java 8 installed on your machine, however you may have newer versions of Java also installed at the same time. To install Java 8 JRE (Java Runtime Environment) please visit this link.

Step 2
Open command prompt/terminal/bash and type in "java -version". You're looking for something that says Java(TM) SE Runtime Environment (build 1.8.0_181-b13). Here we see the building is 1.8.*, which means it's Java 8. If this was Java 9 it may say something like build 1.9.0_21-b2. This is your default Java version.

- If you are running LESS THAN Java 8, I recommend fully upgrading to Java 8 as your default.
- If you are running HIGHER THAN Java 8, I recommend keeping your current version as your default.

Continue to Step 3 if your Java version is > 8.

Step 3
Find your installed Java 8 version on your computer, you're looking for "java.exe". For Windows, it can be in a few places such as:
C:\Program Files (x86)\Java\jdk1.8.0_*\jre\bin\
C:\Program Files\Java\jre1.8.0_*\bin
C:\Program Files\Java\jdk1.8.0_*\jre\bin


But it can be wherever you installed it. Once you find the full path to the .exe, save the path. For instance:
C:\Program Files\Java\jdk1.8.0_111\jre\bin\java.exe
Go to a place such as your desktop and create a new text file. Open the text file and only use a single line to enter this information in the following format:

-jar "osbot.jar"

So for instance the full line may look something like:

C:\Program Files\Java\jdk1.8.0_111\jre\bin\java.exe -jar "osbot.jar"

Save this as a .bat file if you are WINDOWS, for instance "osbot.bat". If you are on Linux/Mac, make it into a shell script (which you should know how to do if you are using these operating systems).

Step 4
Now with your batch/shell script, you can just run it and OSBot will automatically use the correct Java version every time. Please note that updating OSBot may break the script, because in the command you used "osbot.jar" and not "osbot 2.5.22.jar" (for instance). You can either rename your jar everytime to just "osbot.jar" or write an advanced batch/shell script to detect these files automatically.

ALTERNATIVELY: If you are still having problems writing a shell script on Linux/Mac (which you shouldn't because you should know how to use your OS), you can copy and paste that command from that file into terminal and run it.


×
×
  • Create New...