Hacker News new | ask | show | jobs
by samfoo 5287 days ago
I don't know how to configure eclipse to build this, but I spent a few minutes and made an ant script. Save [it](https://gist.github.com/1dd9bd89748f489f67c9) as `build.xml` in root directory of the project and run `$ ant jar`. This will produce `minicraft.jar` which you can execute by running `$ java -jar minicraft.jar`.

(Details: The reason eclipse is complaining is because the images weren't included as resources in the classpath. This cause a null pointer exception when the game attempts to load it's sprites. I don't really use eclipse, so I'm not sure how to fix it)