#HOW TO OPEN OSBOT JAR FILE HOW TO#
You can either rename your jar everytime to just "osbot.jar" or write an advanced batch/shell script to detect these files automatically.ĪLTERNATIVELY: 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. 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). Your screen will look like this: Now, hit Enter to run it. In the command window, type this command: java -version. Press the Windows key on your keyboard and type cmd. Now with your batch/shell script, you can just run it and OSBot will automatically use the correct Java version every time. To check if you have Java installed or not, run the simple command given below. 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). bat file if you are WINDOWS, for instance "osbot.bat". So for instance the full line may look something like:Ĭ:\Program Files\Java\jdk1.8.0_111\jre\bin\java.exe -jar "osbot.jar" Open the text file and only use a single line to enter this information in the following format: Go to a place such as your desktop and create a new text file. For instance:Ĭ:\Program Files\Java\jdk1.8.0_111\jre\bin\java.exe For Windows, it can be in a few places such as:Ĭ:\Program Files (x86)\Java\jdk1.8.0_*\jre\bin\īut it can be wherever you installed it. If you are running HIGHER THAN Java 8, I recommend keeping your current version as your default.Ĭontinue to Step 3 if your Java version is > 8.įind your installed Java 8 version on your computer, you're looking for "java.exe". If you are running LESS THAN Java 8, I recommend fully upgrading to Java 8 as your default. Then input the following command (replacing the example with the actual path of the file you need to run) and press Enter: java -jar c:pathtojarfile.jar. If this was Java 9 it may say something like build 1.9.0_21-b2. Run a JAR file from the Windows Command Prompt Press the Win key + X hotkey and select Command Prompt (Admin) to open it as administrator. jar If i download winrar I open the files. Remove the extra byte at the end of the file (with a hex-editor or a command like head -c -1 myjar.jar ), and then execute the jar by double-clicking or with java -jar myfile.jar as normal. jar as the classpath and name of the main class at the command prompt. Here we see the building is 1.8.*, which means it's Java 8. I can vouch for OSBOT being one of the best bots I have used. Use prayagubd 's approach and specify the. You're looking for something that says Java(TM) SE Runtime Environment (build 1.8.0_181-b13). Open command prompt/terminal/bash and type in "java -version".
#HOW TO OPEN OSBOT JAR FILE INSTALL#
To install Java 8 JRE (Java Runtime Environment) please visit this link. You need to have Java 8 installed on your machine, however you may have newer versions of Java also installed at the same time.