java.lang.NoClassDefFoundError

gdxtest/game/MyGdxGame


Samebug tips9

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web12

Solution icon of stackoverflow
gdxtest/game/MyGdxGame

Solution icon of stackoverflow
Failed resolution of: Lcom/AustinMagnuson/mygdxgame/FallingFlame;

Solution icon of stackoverflow
via Stack Overflow by Carl Persson
, 1 year ago
Game (wrong name: game/Game)`

Solution icon of oraclecommunity
via Oracle Community by 807598, 1 year ago
Game$MyDocumentListener

Solution icon of web
via greatknow.com by Unknown author, 1 year ago
game/ScreenManager

Solution icon of stackoverflow
Game (wrong name: chap5/Game)

Solution icon of coderanch
via Coderanch by Scott Mahoney, 10 months ago
game (wrong name: cha p5/Game)

Solution icon of oraclecommunity
via Oracle Community by 807597, 1 year ago
Game/src/game/Main (wrong name: src/game/Main)

Solution icon of stackoverflow
via Stack Overflow by Poody
, 1 year ago
test/Game$1

Solution icon of web
via badlogicgames.com by Unknown author, 1 year ago
com/gamename/Game

Stack trace

  • java.lang.NoClassDefFoundError: gdxtest/game/MyGdxGame at gdxtest.Launcher.main(Launcher.java:11) Caused by: java.lang.ClassNotFoundException: gdxtest.game.MyGdxGame at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 1 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
2433 more bugmates