ilumoif 1 Share Posted April 30, 2021 Getting the same problem as this guy did that went unanswered: I followed the tutorial 100% but it still says E:\IdeaProjects\Dreambot\Flechette\src\Script.java java: package org.dreambot.api.methods does not exist My client.jar in the libraries is dated today, and I have been using DreamBot for other bots, and no errors in IntelliJ code so not sure what's up. import org.dreambot.api.methods.MethodProvider; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.Category; import org.dreambot.api.script.ScriptManifest; @ScriptManifest(name = "Script Name", description = "My script description!", author = "RIDAI", version = 1.0, category = Category.WOODCUTTING, image = "") public class Script extends AbstractScript { @Override public int onLoop() { MethodProvider.log("My first script!"); return 1000; } } Link to comment Share on other sites More sharing options...
Bonfire 331 Share Posted April 30, 2021 If your script is contained within its own module, be sure to add the client.jar as a JAR dependency to that module as well (making sure to not export it). An example can be found below. Link to comment Share on other sites More sharing options...
ilumoif 1 Author Share Posted April 30, 2021 1 hour ago, Bonfire said: If your script is contained within its own module, be sure to add the client.jar as a JAR dependency to that module as well (making sure to not export it). An example can be found below. Thanks for the fast reply. This is what I currently have: Should be OK right? Link to comment Share on other sites More sharing options...
ilumoif 1 Author Share Posted April 30, 2021 Maybe I need AdoptOpenJDK instead of Oracle like you have Link to comment Share on other sites More sharing options...
Bonfire 331 Share Posted April 30, 2021 Just now, ilumoif said: Maybe I need AdoptOpenJDK instead of Oracle like you have Worth a shot, though I don't think it should change much. Have you tried invalidating your IntelliJ IDEA cache and restarting? You can find the feature under the File menu. Link to comment Share on other sites More sharing options...
ilumoif 1 Author Share Posted April 30, 2021 6 minutes ago, Bonfire said: Worth a shot, though I don't think it should change much. Have you tried invalidating your IntelliJ IDEA cache and restarting? You can find the feature under the File menu. It didn't work, however I altered my project java version to another one I had installed and this one works instead of "Project SDK 1.8" Strange, not quite sure what the other java 1.8 I had selected was referring to but looks like that was the issue! Thanks a lot for the help, now onto writing a script! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.