Note that there are some explanatory texts on larger screens.

plurals
  1. PORunning PlayN in HTML DevMode
    primarykey
    data
    text
    <p>I'd like to be able to run my PlayN project as a Web Application in DevMode, so that I can use a quick browser refresh to see code changes without having to recompile. From what I'm reading on <a href="http://code.google.com/p/playn/wiki/GameDebuggingOptions" rel="nofollow noreferrer">the wiki</a> and on <a href="https://stackoverflow.com/questions/8814547/running-html-version-of-playn?rq=1">this question</a> it sounds like that should be possible.</p> <p>I set up my project using: <code>mvn archetype:generate -DarchetypeGroupId=com.googlecode.playn -DarchetypeArtifactId=playn-archetype -DarchetypeVersion=1.7</code> and importing the pom.xml into eclipse.</p> <p>Here's what I <em>can</em> do:</p> <ul> <li>Run from eclipse as a Java Application</li> <li>Start the server using Maven command line: <code>mvn -Phtml integration-test</code></li> </ul> <p>While I can do most of my programming in Java and occasionally do the long build to test HTML, I'd love to be able to modify the code while testing HTML without recompiling.</p> <p>By default, the option to run as a Web Application doesn't show up. I've tried going into the project's properties and checking the "Use Google App Engine" and "Use Google Web Toolkit" options, which creates the "Run As Web Application" option, but when I do so I get "Could not find any host pages in project XXX".</p> <p>I then attempt to set a WAR directory under Properties->Google-Web Application. However, the closest thing to a WAR in the project is "src/main/webapp". I've tried using that, and I get the error: "The archive: /myproject-assets/src/main/java which is referenced by the classpath, does not exist."</p> <p>I have the feeling I'm going about this all wrong. Can anyone point me in the right direction? Is what I'm doing even supposed to be possible? Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload