Jump to content

Why do I keep getting "Cannot resolve symbol 'osbot'"?


snoots

Recommended Posts

48 minutes ago, snoots said:

It worked before, I'm not sure why I keep getting this error.
I attached the artifact to the OSBot's client.jar, so I shouldn't be getting any errors from this.

Can you post a screenshot of your artifact settings?

I am not sure what you mean by attaching the artifact. The OSBot client should be used as a dependency in your project. When you generate an artifact you’re creating a .jar application with your code. By the client jar being a dependency it is already included in your project.

Link to comment
Share on other sites

9 hours ago, ExtraBotz said:

Can you post a screenshot of your artifact settings?

I am not sure what you mean by attaching the artifact. The OSBot client should be used as a dependency in your project. When you generate an artifact you’re creating a .jar application with your code. By the client jar being a dependency it is already included in your project.

sorry for late response, was at work.
Here is a image of my module settings (since the bot is on a module) 

I used to make bots on poopbot, so I am currently using the poopbot method. It worked once for me with OSBot and then stopped working for some reason.

Capture.PNG

Link to comment
Share on other sites

That is the wrong import, you need to import the downloaded jar (something like osbot 2.6.22.jar), not client.jar. That's the RS client that osbot injects into :feels:

So what I do is download latest version of osbot: https://osbot.org/mvc/get and then rename it to osbot.jar and just import that. So whenever there's a new client version I don't have to remove import and re-import the new version. Eclipse gang here so nobody can relate :doge:

  • Heart 1
Link to comment
Share on other sites

2 hours ago, Czar said:

That is the wrong import, you need to import the downloaded jar (something like osbot 2.6.22.jar), not client.jar. That's the RS client that osbot injects into :feels:

So what I do is download latest version of osbot: https://osbot.org/mvc/get and then rename it to osbot.jar and just import that. So whenever there's a new client version I don't have to remove import and re-import the new version. Eclipse gang here so nobody can relate :doge:

got it, thanks man!

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...