{1} how to begin

{1} how to begin

You can use any IDE that supports Java, but in this tutorial I will be showing you how to set up IntelliJ IDEA by JetBrains

  1. Download and install the latest Java 8 JDK from the Oracle website http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

  2. Download and install IntelliJ IDEA from the JetBrains website https://www.jetbrains.com/idea/

  3. Open IntelliJ IDEA and select "Create New Project"

  1. Create a new Java project giving it an appropriate name

  1. Open the module settings by pressing F4, or right clicking the module and selecting "Open Module Settings"

  2. Navigate to the "Libraries" section on the left side of the pane, add a new Java library, and in the file chooser select the OSBot .jar file

  1. Navigate to the "Artifacts" section on the left side of the pane, and add a new empty JAR.

  2. Give the JAR an appropriate name, such as the name of your script.

  3. Set the output directory of the JAR to C:\Users\Username\OSBot\Scripts in Windows, or ~/OSBot/Scripts in Mac/Linux

  4. Add the compiled output of your module to the JAR by double clicking it on the right hand side of the window

  1. Select apply and close the window.

install troubleshooting

  1. if you are copying a old script to a new script make sure you manafest title is diffrent or you wont see it and it will over write you previous jar with new code

  2. it dont matter where you put project location remember to to change the out directory to osbot script directory

Last updated