Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help - Compile .java classes to .jar [Intellij]

Featured Replies

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:

I0XZBTR.png

Never actually had the need to export to .jar, so I'm pretty much in the blank.

Edited by Visty

Download Eclipse, Link folder - .Jar w/ that. I had to create an individual project each time to .Jar w/ IntelliJ

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

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:

I0XZBTR.png

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.

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:

I0XZBTR.png

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

IMGhbo7.png

3. Click the green + symbol and select JAR -> Empty

6hgzpgZ.png

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

AXO8BQg.png

 

5. Set the name of your .jar, and change the output directory to the scripts folder:

JLTiUqt.png

 

6. Select apply.

7. To then build your script, in the navbar select Build -> Build Artifacts... -> Select the artifact you want to build

Edited by Explv

  • 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? :o

2 minutes ago, Visty said:

Doesn't this compile all the scripts in the packages inside Intellij into the .jar file? :o

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 by Explv

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 by Tom

2 hours ago, Tom said:

as much as I love eclipse, never visit this section again

:feels: 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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.