Jump to content

Script unrecognized by osbot when trying to load


FyredUp

Recommended Posts

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
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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