apnasus 58 Posted November 14, 2023 (edited) I'm trying, and failing, to run the test script from the tutorial, import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.Category; import org.dreambot.api.script.ScriptManifest; @ScriptManifest(category = Category.MISC, name = "First Script", author = "me", version = 1.0) public class Main extends AbstractScript { @Override public int onLoop() { Logger.log("My first script!"); // this line throws an error sleep(2000); return 0; } } When I build the artifact I'm getting the error, C:\Users\me\IdeaProjects\First_Script\src\Main.java:20:9 java: cannot find symbol symbol: variable Logger location: class Main Without the `Logger.log` line the script builds and appears in the Dream Bot scripts folder and shows up in the Dream Bot client, so I think I've added client.jar as a library dependency correctly (screenshot linked here). Am I missing an import? Or something simple? DreamBot Version: 3.22.7. JDK is Eclipse Temurin 21.0.1+12. IDE is IntelliJ IDEA Community version 2023.2.5. Project language level is the JDK default (21), changing it to 8 does not help. Edit: Adding the import Edited November 14, 2023 by apnasus Solved
apnasus 58 Author Posted November 14, 2023 Adding, import org.dreambot.api.utilities.Logger; and changing project language level to 8 worked.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now