4
\$\begingroup\$

I want to publish an app created with libGDX (HTML/JS publishing). Here are the steps I am doing. Right Click on the Project -> Google -> Gwt Compile -> Compile. After the compilation there is no .html file in the /war directory . There are 3 folders assets,html,WEB-INF . What am I doing wrong?

| improve this question | | | | |
\$\endgroup\$
  • 1
    \$\begingroup\$ Relevant: WAR (File format) \$\endgroup\$ – Alexandre Desbiens Jul 10 '15 at 15:32
  • \$\begingroup\$ ok and how can I run it? \$\endgroup\$ – Vahe Muradyan Jul 10 '15 at 15:35
  • \$\begingroup\$ Do you have a .war file? If yes, you will need a web server that can run it (mainly a java server, like Apache Tomcat). Have you tried looking for other compile target options? Maybe you can have something else than a .war. \$\endgroup\$ – Alexandre Desbiens Jul 10 '15 at 15:42
  • \$\begingroup\$ no I don`t have .war file , I have a folder named war and it has 3 subfolders assets,html,WEB-INF \$\endgroup\$ – Vahe Muradyan Jul 10 '15 at 15:49
  • 1
    \$\begingroup\$ @AlexandreDesbiens the requirements of a web server for HTML/JS deployment of a libGDX project depends on whether or not server-side operations are being used in the code. See Deploying to HTML/JS for more information. \$\endgroup\$ – driima Jul 10 '15 at 20:08
0
\$\begingroup\$

On Android Studio, on the heeader menu go to: View->Tool Windows->Gradle

There you will see all you subprojects. open up the 'other', right click on the task 'dist' and click 'run'.

This will create the distribution file in your HTML->build->dist folder. You can copy those file to your root folder (or link your root folder to this location)

| improve this answer | | | | |
\$\endgroup\$
  • \$\begingroup\$ He never said he uses android studio \$\endgroup\$ – Bálint Nov 10 '16 at 8:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.