JacksonHoggard / voodoo2d

👹 2D Java Game Engine built in OpenGL
MIT License
131 stars 50 forks source link

Cannot build SNAPSHOT.jar #21

Closed romeojung closed 3 years ago

romeojung commented 4 years ago

Describe the bug I did all the configuration and building steps on the wiki, but the IntelliJ IDEA just gave me a "DEVBUILD.jar", a single jar file, and it wouldn't run because it doesn't have a main class.

To Reproduce Steps to reproduce the behavior:

  1. Clone repo
  2. Start IntelliJ IDEA
  3. Press green start button on the top menu line of the program right next to the button that says main after editing configuration to build a jar, with the command "clean install" as the wiki suggests
  4. Check the target folder

Expected behavior Two .jar files, in which one of them would be named SNAPSHOT.jar, and it would start the engine.

Screenshots image image image image

Desktop (please complete the following information):

Additional context As shown in the screenshot, it also opens up the game screen. I'm not sure if that is supposed to happen or not.

JacksonHoggard commented 3 years ago

To run a jar file in the command line, you have to type use "java -jar pathtojarfile". It looks like you forgot to add the -jar flag in your command. Also, the game screen is supposed to come up as you've shown in your screenshot.