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.

Xdot

Members
  • Joined

  • Last visited

  1. Thank you! This seems to have fixed my problem!
  2. I did add a Mod ID to the main class (if that's the same thing as a "mod annotation"). It looks something like this: @Mod("lca") As for setting up my workspace, I downloaded the latest java8 download, created a new PATH variable to the JDK, I then downloaded IntelliJ Community Edition, And a forge 1.18.2 MDK. I then opened the MDK in the IDE and changed only what was necessary for the mod to run (the mod ID in the main class + what was marked as mandatory in the mods.toml file). Next via command prompt, I generated the "runs" to run my mod in the IDE. Finally, I selected "Run Client" in the Run/Debug Configurations. One thing you might want to note, and I don't know if this has anything to do with my current issue, was that the first time I had tried to run the mod in the IDE, I got a different error message that read the following: Unrecognized option: -p Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. I managed to fix this error by going into the Run/Debug Configurations and deleting a line of code that said only "-p" under the "Build and Run" Section.
  3. Hello, I'm trying to code a Minecraft mod for forge using IntelliJ IDE. I am running into issues when I try to run the mod in the IDE. I get an error message that reads the following: "Error: Could not find or load main class" I'm rather new to modding and I am not sure what is giving me this error message, If anyone has seen this before or has any suggestions any help would be greatly appreciated!

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.