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
  • Try asking for help in the chatbox
  • Using External Libs Tutorial


    Defiled
     Share

    Recommended Posts

    Hello,

    I wrote this guide because of the new feature @Nuclear Nezz released in the past few weeks, I hope you enjoy.

    First: Grab your Library Jar File and place it in the "Libs" folder found in the DreamBot folder found in your user.home directory.

    3564395be6d74c8a70e1877abb31bc6b.png

     

    Second: Head over to your script files and create a new file with the name "libs" in your Source folder A.K.A src.

    (Note: The file isn't a .txt, it's just a normal file without any prefixes, if you don't know how to create a default file then you shouldn't be scripting 😛 )

    60f587c62b824ab47a389ba892d9a55d.png

     

    Third: Edit this file using Notepad or what ever text editing software you prefer, and write in the name of the library with its prefix (Case-Sensitive).

    Ex: mysql-connector-java-5.1.48.jar & jmail.jar

    1a61f1afdaa16dd3a5adfa07053b0b10.png

     

    Fourth: Build your script Jar File, also as a helpful hint: when building artifacts in IntelliJ, enable "Include in project build" to build artifacts faster with every compile & select JAR > from modules with dependencies and remove the library from compiling with the script on the artifacts interface. 

    594f3cc5dbed3669682302119d7245fc.png

     

    and that's it! 

    Thank you @Nuclear Nezz for this fantastic and wonderful update.

     

    Credits to Nezz for explaining briefly how to use the new Libs update. It was a comment in a thread that might get lost, so I made a full thread to keep it in full view to people.

    152a5c6a59522df9030ead96b1fdddc7.png

    Link to comment
    Share on other sites

    2 hours ago, ndsalem12 said:

    Thank you so much! The screenshot at the end is from my original question about the topic a couple days ago. Appreciate it a lot man, cheers.

     

    No problem! :) 

    Link to comment
    Share on other sites

    • 3 months later...

    I added the libs file, added the jar name, added the jar to the Libs folder and still no luck. If anyone wants to add me on discord it's Zach#2679

    Link to comment
    Share on other sites

    • 1 year later...

    I tried the above and didn't work. This is what worked for me:

    added all jars into dependencies:

    image.thumb.png.fe9b9eca58162e4533d492567e63b7e6.png

    added all jars into output:

    image.thumb.png.9641968c201c5b4a97d93b342be47f16.png

     

    Edited by greekhaima
    Link to comment
    Share on other sites

    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
     Share

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