SinisterSerpent Posted July 4, 2019 Share Posted July 4, 2019 (edited) When I try to run osbot I get the "You are currently running version 10.0.2 of Java... etc" message. I've followed the steps in osbot.org/forum/java and created a batch file with the following line: C:\Program Files\Java\jdk1.8.0_211\jre\bin\java.exe -jar "osrs.jar" (my osbot jar is called osrs.jar) But nothing seems to be happening? When I run it a cmd window flashes for a second and then nothing happens Any help will be greatly appreciated Edited July 4, 2019 by SinisterSerpent Quote Link to comment Share on other sites More sharing options...
Chorux Posted July 4, 2019 Share Posted July 4, 2019 (edited) Is your osbot filename "osrs.jar"? Also, use shift+right click on the folder and and choose "Open command prompt here" and then run the bat file to see the error. E: Or if there is "Open PowerShell here" then use that and run the bat using ./filename.bat Edited July 4, 2019 by Chorux Quote Link to comment Share on other sites More sharing options...
Proton Posted July 4, 2019 Share Posted July 4, 2019 12 minutes ago, SinisterSerpent said: When I try to run osbot I get the "You are currently running version 10.0.2 of Java... etc" message. I've followed the steps in osbot.org/forum/java and created a batch file with the following line: C:\Program Files\Java\jdk1.8.0_211\jre\bin\java.exe -jar "osrs.jar" (my osbot jar is called osrs.jar) But nothing seems to be happening? When I run it a cmd window flashes for a second and then nothing happens Any help will be greatly appreciated Do you have Discord? If so add me: Proton#8570 , pretty sure you have the wrong version of Java, you need to be using Java 8, not 10. Quote Link to comment Share on other sites More sharing options...
SinisterSerpent Posted July 4, 2019 Author Share Posted July 4, 2019 12 minutes ago, Chorux said: Is your osbot filename "osrs.jar"? Also, use shift+right click on the folder and and choose "Open command prompt here" and then run the bat file to see the error. E: Or if there is "Open PowerShell here" then use that and run the bat using ./filename.bat I did as you suggesed, the problem was the space between "Program Files". Putting the path in quotes fixed this Thanks! Quote Link to comment Share on other sites More sharing options...
silentra1n Posted November 6, 2019 Share Posted November 6, 2019 I had this same issue. I want to clarify for anyone with this problem, the solution looks like this: "C:\Program Files\Java\jre1.8.0_231\bin\javaw.exe" -jar "OSbot.jar" pasted into the notepad then saved as a .bat. Quote Link to comment Share on other sites More sharing options...
chrisgrey Posted August 26, 2020 Share Posted August 26, 2020 On 11/6/2019 at 2:35 PM, silentra1n said: I had this same issue. I want to clarify for anyone with this problem, the solution looks like this: "C:\Program Files\Java\jre1.8.0_231\bin\javaw.exe" -jar "OSbot.jar" pasted into the notepad then saved as a .bat. Thank you for posting this. I've been battling this for over 2 hours and it was that simple to fix lmao Quote Link to comment Share on other sites More sharing options...
geoffrey456 Posted August 27, 2020 Share Posted August 27, 2020 i have the same problem recently. i download java 11 because i need it for a other program. i cant manage to run 2 differents java's versions. Now i deleted all java and reinstalling java 8. but osbot still doesnt run. Quote Link to comment Share on other sites More sharing options...