LWJGL Java application is only launched by the terminal (Linux, possibly OS X)

I have an application that I created using LWJGL with two main components: a game and an editor. When running jar using eclipse or using, the java -jar <jarname>.jarapplication works fine with LWJGL components. However, whenever I just double-click on .jar to launch it, the LWJGL components will not start in the application, they do not show errors, they just do nothing.

I have all the linked libraries, before any LWJGL components are even called, I will definitely set the library path to the corresponding Aboriginal people depending on your OS.

Regarding the structure of the application, I have one Jar file that launches a mini launcher, allowing the user to select a game or engine. When a game is selected, the button is pressed for a few seconds and the game window never appears. Again, running through the command line does not cause such problems.

My directory structure is as follows App.jar

| -lib

| ---- jars

| ---- natives

| ----------- window

| ----------- MacOSX

| ----------- Linux

| -res

| -save

/windows /macosx /linux . LWJGL, lwjgl-util.jar lwjgl.jar, Eclipse . , . try/catch, , , , .

, JInternalFrame , ( ), , .

? , classpath, , . ?

GitHub

+4

All Articles