mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-08 07:54:05 +00:00
(possible) fix for headless environment issue with awt on linux
This commit is contained in:
parent
ed4ff0e1dc
commit
13b41d7b69
1 changed files with 8 additions and 1 deletions
|
|
@ -32,6 +32,7 @@
|
|||
package org.lwjgl.test;
|
||||
|
||||
import org.lwjgl.Sys;
|
||||
import java.awt.Toolkit;
|
||||
|
||||
/**
|
||||
* <br>
|
||||
|
|
@ -43,13 +44,19 @@ import org.lwjgl.Sys;
|
|||
*/
|
||||
public class NativeTest {
|
||||
|
||||
public void invokeSys() {
|
||||
Sys.getVersion();
|
||||
}
|
||||
|
||||
/**
|
||||
* Entry point for test
|
||||
*
|
||||
* @param args ignored
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
Sys.getVersion();
|
||||
// try to "load" awt - work around for headless issue on linux
|
||||
Toolkit.getDefaultToolkit();
|
||||
new NativeTest().invokeSys();
|
||||
System.out.println("OK");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue