Viston Posted June 15, 2017 Share Posted June 15, 2017 (edited) So I'm trying to compile my classes using intellij's artifacts. However, when I go to Project Settings > Artifacts > Jar > From modules to dependencies > Main Class > *MY CLASS*. I get an error saying: Never actually had the need to export to .jar, so I'm pretty much in the blank. Edited June 15, 2017 by Visty Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted June 15, 2017 Share Posted June 15, 2017 Download Eclipse, Link folder - .Jar w/ that. I had to create an individual project each time to .Jar w/ IntelliJ Quote Link to comment Share on other sites More sharing options...
Explv Posted June 15, 2017 Share Posted June 15, 2017 22 minutes ago, HeyImJamie said: Download Eclipse, Link folder - .Jar w/ that. I had to create an individual project each time to .Jar w/ IntelliJ This is terrible advice 3 Quote Link to comment Share on other sites More sharing options...
Eliot Posted June 15, 2017 Share Posted June 15, 2017 30 minutes ago, Visty said: So I'm trying to compile my classes using intellij's artifacts. However, when I go to Project Settings > Artifacts > Jar > From modules to dependencies > Main Class > *MY CLASS*. I get an error saying: Never actually had the need to export to .jar, so I'm pretty much in the blank. Just ignore that warning and press OK. Your jar will function fine. Quote Link to comment Share on other sites More sharing options...
Explv Posted June 15, 2017 Share Posted June 15, 2017 (edited) 1 hour ago, Visty said: So I'm trying to compile my classes using intellij's artifacts. However, when I go to Project Settings > Artifacts > Jar > From modules to dependencies > Main Class > *MY CLASS*. I get an error saying: Never actually had the need to export to .jar, so I'm pretty much in the blank. 1 hour ago, HeyImJamie said: Download Eclipse, Link folder - .Jar w/ that. I had to create an individual project each time to .Jar w/ IntelliJ Here is how to do it: 1. Open module settings (F4), or right click on a module and select open module settings 2. Navigate to the artifacts tab on the left 3. Click the green + symbol and select JAR -> Empty 4. Move the compiled output of the module you want to put into the .jar from the available elements (on the right) into the .jar (on the left) by double clicking on it 5. Set the name of your .jar, and change the output directory to the scripts folder: 6. Select apply. 7. To then build your script, in the navbar select Build -> Build Artifacts... -> Select the artifact you want to build Edited June 15, 2017 by Explv 3 Quote Link to comment Share on other sites More sharing options...
Viston Posted June 15, 2017 Author Share Posted June 15, 2017 2 minutes ago, Explv said: Here is how to do it: 1. Open module settings (F4), or right click on a module and select open module settings 2. Navigate to the artifacts tab on the left Doesn't this compile all the scripts in the packages inside Intellij into the .jar file? Quote Link to comment Share on other sites More sharing options...
Explv Posted June 15, 2017 Share Posted June 15, 2017 (edited) 2 minutes ago, Visty said: Doesn't this compile all the scripts in the packages inside Intellij into the .jar file? No, it will only include what you tell it to include. If you make each of your scripts it's own module, then you can include each individual module in a different .jar Notice how I have one .jar for my AIO script and another for my walking script. Edited June 15, 2017 by Explv Quote Link to comment Share on other sites More sharing options...
Tom Posted June 15, 2017 Share Posted June 15, 2017 (edited) 1 hour ago, HeyImJamie said: Download Eclipse, Link folder - .Jar w/ that. I had to create an individual project each time to .Jar w/ IntelliJ as much as I love eclipse, never visit this section again Edited June 15, 2017 by Tom 4 Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted June 15, 2017 Share Posted June 15, 2017 2 hours ago, Tom said: as much as I love eclipse, never visit this section again I used IntelliJ, Jar'd all my privates. Guarantee there's a risk he'll do the same. Quote Link to comment Share on other sites More sharing options...