I've been working with libgdx
for 2 days, and I'm starting to get the hang of it.
I'm comfortable with deployment on Android and desktop, but I've got no clue about how to run/debug or deploy the HTML5
version.
When I run as web application, the link gives me an http error 404
.
I did what they say on the libgdx wiki, but that ain't working, so, help would be welcome.
BTW, the app's working fine on Android and desktop.
This worked for me:
In Eclipse -- right click on the *-html
project. Select "Google" -> "GWT Compile". This will perform a GWT compile on the project, it can take a while so be patient. Once this is completed, I was able to copy the expanded war
directory into my tomcat webapps
directory. Tomcat was already running, it picked up the change and deployed the game, I was able to load it via localhost:8080/war/
I later renamed the directory (the one in the webapps folder) to something more appropriate for my project.
Good luck.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With