Question

I installed playN however I get this error:

[INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ playn-showcase-html --- [ERROR] Error: Could not find or load main class com.google.gwt.dev.Compiler

I checked the m2 repository, and the gwt jars for 2.4 2.5 gwt seem to be there.

If I try to use GWT 2.5 in the project then I get this

The GWT SDK 'C:\Users\user.m2\repository\com\google\gwt' on the project's build path is not valid (Version is not supported, must be 2.0.0 or later)
playn-showcase-html
Unknown Google Web Toolkit Problem

Does this make sense at all? How to fix it?

Thanks

Was it helpful?

Solution

It seems that some gwt jars in the maven repository were corrupted. I deleted them, i run the playN sample again, the jars were downloaded correctly, and the whole think worked

OTHER TIPS

C:\Users\user.m2 <-- this is very strange. it looks like somehow your maven repository path is munged up.

Check your environmental variables for MAVEN_REPOSITORY and see if its set to C:\Users\user. Also, find your maven installation directory, and look under the conf directory for a settings.xml, and see if you have <localRepository>${env.MAVEN_REPOSITORY}/.m2/repository</localRepository>.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top