June 15, 20178 yr 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, 20178 yr by Visty
June 15, 20178 yr Download Eclipse, Link folder - .Jar w/ that. I had to create an individual project each time to .Jar w/ IntelliJ
June 15, 20178 yr 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
June 15, 20178 yr 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.
June 15, 20178 yr 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, 20178 yr by Explv
June 15, 20178 yr Author 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?
June 15, 20178 yr 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, 20178 yr by Explv
June 15, 20178 yr 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, 20178 yr by Tom
June 15, 20178 yr 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.
Create an account or sign in to comment