Jump to content

Tutorial Req - IntelliJ making .jar


WhoKnew

Recommended Posts

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 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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