Jump to content

Script unrecognized by osbot when trying to load


Recommended Posts

Posted (edited)

I'm trying to learn how to make a bot and I'm not sure what I'm doing wrong.

I've taken the skeleton code from here and set up IntelliJ to use the OSBot library so that all the keywords are recognized. When building the artifact jar there doesn't appear to be any issues, and I'm putting it into the OSBot scripts folder. When I open OSBot and hit refresh on scripts, the logger simply says "Failed to load local script : FirstBot.class". I did change the class name from Skeleton to FirstBot when I took the skeleton code.

Does anyone have any guesses as to what I'm doing wrong?

Edited by FyredUp
Posted
2 hours ago, BravoTaco said:

This problem can occur while using the wrong java version when building out the jar.

In IntelliJ go to File -> Project Structure -> Project

Set the Project SDK to 1.8

Set the Project language level to 8

Oh that's almost certainly it. Haven't gotten back to my computer yet but I'd bet money that's my issue. Thank you!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...