Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

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.

Featured Replies

Posted

I'm trying to import classes from this mod library in my project: https://www.curseforge.com/minecraft/mc-mods/ftb-library-forge

I've downloaded the .jar for 1.18.2, placed it in my project root folder and added it in IntelliJ as a module (by going to file -> project structure -> main -> +JARs or directories -> ftb-library-forge-1802.3.6-build.115.jar)

I can import the classes in my code without error and have working autocomplete and inspection:
EuidtUY.png

Except whenever I try to build I get:

error: package dev.ftb.mods.ftblibrary.ui does not exist
import dev.ftb.mods.ftblibrary.ui.BaseScreen;

I've also tried adding it to my classpath (I am on Windows) as suggested by some stackoverflow posts, using:

javac -cp .;./ftb-library-forge-1802.3.6-build.115.jar dev/ftb/mods/ftblibrary/FTBLibrary.java

except this just gives me: error: no source files

Is there something wrong with what I'm doing here and/or is there an alternate way to get this dependency into my project?

  • Author

I followed these links but am getting this note on my build.gradle, and the imports are still not found (though strangely, it still lets me run and doesn't error until I try to use the dependency's classes, at which point it throws a NoClassDefFoundError.

lXS5x8Y.png

 

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

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.