question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with org.lwjgl.Sys on Raspberry

See original GitHub issue

The problem happens when I try to run the application on the Raspberry Pi 3 so it seems to be a problem with the compilation for the ARM architecture. Although on Android it works

I’ve used lwjgl 3 on raspberry pi 3 and it works well

Follow the stack:

Exception in thread "LWJGL Application" java.lang.NoClassDefFoundError: Could not initialize class org.lwjgl.Sys
	at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
	at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setVSync(LwjglGraphics.java:617)
	at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:125)

Project created with gdx-setup

gdxVersion = ‘1.9.11’

  • Android
  • iOS
  • HTML/GWT
  • Windows
  • Linux
  • MacOS

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
LucasFebatiscommented, Oct 24, 2020

Wow, Replacing

api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"

with

api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"

Works well

Thanks

2reactions
SimonITcommented, Oct 24, 2020

You aren’t using lwjgl3. Else the package in the stacktrace would be com.badlogic.gdx.backends.lwjgl3 and the classes would be Lwjgl3Graphics and Lwjgl3Application

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running LWJGL on a Raspberry Pi - java - Stack Overflow
OpenGL ES has no immediate mode rendering (glBegin, glVertex, glColor). You'll have to load your geometry into VBO's and render that way. You'll ......
Read more >
How to setup any version of Minecraft on Pi4 - Page 3
at org.lwjgl.Sys.<clinit>(Sys.java:118) at bib.I(SourceFile:2825) ... A fatal error has been detected by the Java Runtime Environment:
Read more >
[SOLVED] Development on Raspberry Pi 4 - General Help
Hi everyone. I recently bought a RP4 and setup java and intelliJ on it and tried to run my existing game code which...
Read more >
Version mismatch: jar version is '8', native libary version is '7'
Exception in thread "main" java.lang.LinkageError: Version mismatch: jar version is '8' , native libary version is '7'. at org.lwjgl.Sys.
Read more >
Jamvm unable to run blocky on Arch Linux
To fix the "Error: jamvm VM not supported" You need to recompile the Arch Linux java7-openjdk package and pass --enable-jamvm or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found