Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Robovm: java.lang.NoClassDefFoundError: org/robovm/objc/$M

Tags:

java

robovm

I have a problem every time I run my app that was built using libgdx/robovm. The build succeeds, but every time I open the app, I get the following stack trace:

java.lang.NoClassDefFoundError: org/robovm/objc/$M
    at org.robovm.apple.foundation.NSObject.init(NSObject.java)
    at org.robovm.apple.foundation.NSObject.<init>(NSObject.java)
    at org.robovm.apple.foundation.NSAutoreleasePool.<init>(NSAutoreleasePool.java)
    at my.app.IOSLauncher.main(IOSLauncher.java)

I'm using the latest versions of robovm, Xcode, and JDK 8.

Any idea why this happens?

like image 692
David Xia Avatar asked Jan 21 '26 16:01

David Xia


1 Answers

I'm not sure what caused this exception, but updating to LibGDX 1.6.0 and RoboVM 1.2.0 solved this issue for me.

like image 82
Khartraxx Avatar answered Jan 23 '26 04:01

Khartraxx



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!