Yep, did that:
************************
java -Xmx512m -classpath "c:\Documents and Settings\yychaik\My
Documents\workspaces\gwt-tools\PlaceService\src\main\java";"c:\Documents
and Settings\yychaik\My
Documents\workspaces\gwt-tools\PlaceService\src\main\resources";"c:\Documents
and Settings\yychaik\My
Documents\workspaces\gwt-tools\PlaceService\target\classes";"c:\Documents
and Settings\yychaik\My
Documents\workspaces\gwt-tools\PlaceService\src\test\java";"c:\Documents
and Settings\yychaik\My
Documents\workspaces\gwt-tools\PlaceService\src\test\resources";"c:\Documents
and Settings\yychaik\My
Documents\workspaces\gwt-tools\PlaceService\target\test-classes";"C:\Documents
and 
Settings\yychaik\.m2\repository\com\google\gwt\gwt-user\2.0.1\gwt-user-2.0.1.jar";"C:\Documents
and Settings\yychaik\.m2\repository\junit\junit\4.7\junit-4.7.jar";"C:\Documents
and 
Settings\yychaik\.m2\repository\com\google\gwt\gwt-dev\2.0.1\gwt-dev-2.0.1.jar";"C:\Documents
and 
Settings\yychaik\.m2\repository\org\codehaus\mojo\gwt-maven-plugin\1.2\gwt-maven-plugin-1.2.jar";"C:\Documents
and 
Settings\yychaik\.m2\repository\org\apache\maven\surefire\surefire-api\2.4.3\surefire-api-2.4.3.jar"
-Dgwt.args=-out "target/www-test"  -Dsurefire.reports="c:\Documents
and Settings\yychaik\My
Documents\workspaces\gwt-tools\PlaceService\target\surefire-reports"
org.codehaus.mojo.gwt.test.MavenTestRunner
org.tbiq.gwt.tools.placeservice.GwtTestDefaultHistoryTokenParser
************************

Doesn't work because of this:
***********************************
Exception in thread "main" java.lang.NoClassDefFoundError: target/www-test
Caused by: java.lang.ClassNotFoundException: target.www-test
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: target/www-test.  Program will exit.
***********************************

Correct me if I am wrong, but isn't that the directory that gets
populated by the maven-gwt-plugin when executing the 'test' goal? If
so, it seems like I am in a loop: can't execute command-line because I
need the www-test directory to have test-compiled stuff. Can't get
maven-gwt-plugin to have the test-compiled stuff put into the www-test
directory because something goes wrong... Argh!

Any ideas?

Thanks for taking the time to help out.

Yaakov.


On Sun, Feb 14, 2010 at 4:58 PM, Wayne Fay <[email protected]> wrote:
>> [DEBUG] Execute command :
>> c:\Program Files (x86)\Java\jdk1.6.0_13\jre\bin\java -Xmx512m
>> -classpath "c:\Documents and Settings\yychaik\My
>> Documents\workspaces\gwt-tools\PlaceService\src\main\java";"c:\Documents
>> and Settings\yychaik\My
>> Documents\workspaces\gwt-tools\PlaceService\src\main\resources";"c:\Documents
>> and Settings\yychaik\My
>> Documents\workspaces\gwt-tools\PlaceService\target\classes";"c:\Documents
>> and Settings\yychaik\My
>> Documents\workspaces\gwt-tools\PlaceService\src\test\java";"c:\Documents
>> and Settings\yychaik\My
>> Documents\workspaces\gwt-tools\PlaceService\src\test\resources";"c:\Documents
>> and Settings\yychaik\My
>> Documents\workspaces\gwt-tools\PlaceService\target\test-classes";"C:\Documents
>> and 
>> Settings\yychaik\.m2\repository\com\google\gwt\gwt-user\2.0.1\gwt-user-2.0.1.jar";"C:\Documents
>> and 
>> Settings\yychaik\.m2\repository\junit\junit\4.7\junit-4.7.jar";"C:\Documents
>> and 
>> Settings\yychaik\.m2\repository\com\google\gwt\gwt-dev\2.0.1\gwt-dev-2.0.1.jar";"C:\Documents
>> and 
>> Settings\yychaik\.m2\repository\org\codehaus\mojo\gwt-maven-plugin\1.2\gwt-maven-plugin-1.2.jar";"C:\Documents
>> and 
>> Settings\yychaik\.m2\repository\org\apache\maven\surefire\surefire-api\2.4.3\surefire-api-2.4.3.jar"
>> -Dgwt.args=-out "target/www-test"  -Dsurefire.reports="c:\Documents
>> and Settings\yychaik\My
>> Documents\workspaces\gwt-tools\PlaceService\target\surefire-reports"
>> org.codehaus.mojo.gwt.test.MavenTestRunner
>> org.tbiq.gwt.tools.placeservice.GwtTestDefaultHistoryTokenParser
>
> Copy and paste that huge chunk of text into an MS-Dos prompt (after
> cd'ing to the proper place and removing the >'s etc) and see what
> happens. I'm certain the issue is related to the "Documents and
> Settings" path just not sure where exactly it is failing...
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to