Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users

    Recommended Posts

    Posted

    Im trying to build my own script, im completely new to scripting and java.. 

    I followed the tutorial on setting up IntelliJ IDEA envourment, but when i build my artifact i get a bunch of errors saying
    C:\Users\*****\IdeaProjects\MySplasher\src\SeagullSplasherScript.java:17:41
    java: cannot find symbol
      symbol:   class Settings
      location: package org.dreambot.api.methods.settings

    I used this import but "Settings;" is red
    import org.dreambot.api.methods.settings.Settings;

    What am i doing wrong? 

    image.thumb.png.046f7fbe86982f15e127089e3ec5b639.png

    Posted

    Your JDK (Java Development Kit) is set to 11. It needs to be 1.8
    To do that go to File->Project Structure -> Project Settings -> Project.
    Under SDK there's a drop down, you want to select 1.8 or download it if you don't already have it

    This guide shows a recommended place to download it from: https://dreambot.org/guides/scripter-guide/script-dev/installing-jdk/

    There may be more problems afterwards so brace yourself :)

    Posted (edited)

    If you get a new IntelliJ version, tthe AI assistant would troubleshoot things like this for you. Extremely handy!

    Edited by koirul12e
    Posted

    I sent you some stuff I use when making scripts. Hope it helps!

    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
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.