0

I'm experiencing an issue with minecraft forge. Whenever I run a project in Eclipse it crashes. Though, I don't experience this issue in IntelliJ. I need Eclipse to complete this as Eclipse has some features that IntelliJ doesn't let me do.

Here's the issue Unable to initialize main class net.minecraftforge.userdev.LaunchTesting Caused by: java.lang.NoClassDefFoundError: com/mojang/authlib/exceptions/AuthenticationException

2 Answers2

1

You need to add a library with class named com.mojang.authlib.exceptions.AuthenticationException to your project's classpath.

msangel
  • 9,895
  • 3
  • 50
  • 69
0

It's possible you imported the project into eclipse incorrectly so the system that it's not using the dependency manager they IntelliJ may have automatically sensed and utilized.

For example, if there is a pom.xml in the project directory then you would want to use "import as existing maven project" so that it loads all the right dependencies (packages) needed to run the project.

Atmas
  • 2,389
  • 5
  • 13
  • pretty sure it's using gradle – msangel Apr 02 '21 at 02:26
  • it is using gradle – Evan McClure Apr 02 '21 at 02:56
  • 1
    Same idea. Different dependency framework. I'm not a gradle user but assuming sclipse has a file->import existing gradle project then be sure you used that to add your project to your workspace and then I would expect eclipse would synch with gradle and jmport all necessary libraries to make your project run as it does in the other IDE. – Atmas Apr 02 '21 at 05:24
  • All that does is to basically plug in (satisfy) the missing class path entry that msangel noted in the earlier answer. – Atmas Apr 02 '21 at 05:26