
- #Java osrs runescape 2007 bot asm instrumentation tutorial code#
- #Java osrs runescape 2007 bot asm instrumentation tutorial plus#
Public static void main ( String args ) )
#Java osrs runescape 2007 bot asm instrumentation tutorial code#
Create a new class called "Util" (without quotes).Ĭopy paste the below code into the Util class.8. Create a new package called "utility" (without quotes). The below images are a result of the above steps:įor this part of the tutorial, we will be creating a socket class and a Utilities class. Specify the main class (without quotes): "eos.BootLoader".Ĭhange the name of the Artifact to "Eos" (without quotes).
#Java osrs runescape 2007 bot asm instrumentation tutorial plus#
Hit the plus sign and choose Jar -> From Modules With Dependencies. In our case, we want our boot loader to run first! Then the boot loader will run main on a separate JVM and then die off, leaving only the Main JVM running.Ĭlick the file menu -> Project Structure.

This allows us to override internal classes without using command line and keeps our jar double-clickable.Ī manifest is the part of the jar file configuration that tells the JVM what classes to run when the jar is double clicked or ran without explicit main arguments. The above code creates a JVM, runs your application with "XBootClassPath/p:" commands and arguments the original JVM dies off leaving the bot JVM running. Public static void main(String args) throws IOException ) Private static final String BOOT_FLAGS = "-Xbootclasspath/p:" Paste the following code for the boot loader. We don't want to have to input command line arguments using cmd/terminal in order to run it every time. We need this because we want our bot to be double-clickable (double click the jar and it runs). Specify the following VM Options (if you do not know where your Jar is located, look at your Working Directory on the same screen): -Xbootclasspath/p:"/Users/YourUserNameHere/Desktop/BotTutorial/out/artifacts/Eos/Eos.jar"įor those of you that do not know what a boot loader is, it is a set of instructions/code that is ran before the actual application's main gets run. Specify your main class (without quotes): "eos.Main". Give your configuration a name (without quotes): "Main". Hit the plus sign at the top left corner of your IDE. Hit New -> Class.Ī configuration is a script in Intelli-J that tells it which class is the main class (which class should be ran first).Ĭlick the button with the arrow pointing DOWN at the top right of your IDE. Name your package (without quotes): "java.awt". Name your package (without quote): "eos".
Give your project a name (Ex: BotTutorial).
