Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes GWT and the fly likes GWT & ANT Classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT & ANT Classpath" Watch "GWT & ANT Classpath" New topic
Author

GWT & ANT Classpath

sam wootton
Ranch Hand

Joined: Apr 16, 2011
Posts: 68
    
    1
Hi,

Many thanks in advance for any help or advice.

I have a problem with my project structure and classpath. Project and pkg structure is:

[project]
build.xml

[project] [src] [gwt]
MFClient.gwt.xml

[project] [src] [gwt] [client]
MFClient.java

MFClient.gwt.xml


Ant build.xml


When I run "ant build" I get the following error



When I move my MFClient.gwt.xml' file to the same package level as my MFClient.java, so:

[project] [src] [gwt] [client]
MFClient.java
MFClient.gwt.xml

It compiles, but I get the following error:


However I do end up with a gwt-unitCache and classes copied to my war directory.

I have tried

<source path='gwt.client'/>
<source path='client'/>

.. and no source path at all, however seem to always have classpath problems, either not finding the java, or not finding my gwt.xml file.

Regards, Sam
sam wootton
Ranch Hand

Joined: Apr 16, 2011
Posts: 68
    
    1
Resolved by changing "<arg value="gwt.MFClient"/>" in build.xml


And moving MFClient.gwt.xml to

[project] [src] [gwt]

and removing source path in gwt.xml:


Regards, Sam
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10175
    
    8

Well done. And for coming back and sharing your solution with others, you just earned yourself a cow!


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GWT & ANT Classpath
 
Similar Threads
Cannot build war with Spring Beans File included
Jboss newbie (5.1.0 GA) + eclipse: what's the best configuration?
Compilation error while building the project using Ant
Path not working
Ant Build Failing -- Need a way to pick jar file during run time.