Jump to content

Tutorial Req - IntelliJ making .jar


Recommended Posts

Posted

Getting back into coding, and it's been a long time :p lol

Short story short, I want to test out my script, but I need it in a .jar

How do I build the script to a .jar file through IntelliJ . I know there is a way, did it in the past. 

Any help is awesome :)

 

1) Right click on the module and select "Open Module Settings", or press F4, to open the module settings window.

 

2) Go the the Artifacts section:.

 

3) Select the green cross, and select JAR -> Empty

 

4) - Set the name of the output.jar file, change the Output directory to the OSBot/Scripts directory, and move the 'module name' compile output from the right hand side under Available Elements, to the left  hand side in your .jar:

 

gFueiOF.png

 

5) Select Apply and close the window

 

6) To build the .jar first select the Build menu at the top, and select Build Artifacts, then select build in the menu that appears 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...