AdamSloan95 / Video_Game_Engine

A video Game Engine build in Java using LWJGL
0 stars 0 forks source link

Build failures in Maven #11

Closed AdamSloan95 closed 4 months ago

AdamSloan95 commented 4 months ago

When I tried to run the .jar from the terminal I found a lot of errors thrown due to dependencies - although the jar did seem to build without errors.

AdamSloan95 commented 4 months ago

Shade allows the maven to package all the needed dependencies - including LWJGL ones so it can build properly. If you look at the pom.xml for the project under plugins - shade.

cd "Whereever your main directory is"

then

mvn clean package
java -jar target/Game-0.0.1-SNAPSHOT.jar  

or on mac:

java -XstartOnFirstThread -jar target/GameEngine-1.0-SNAPSHOT.jar