• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

GWT & ANT Classpath

 
Ranch Hand
Posts: 105
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 105
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done. And for coming back and sharing your solution with others, you just earned yourself a cow!
 
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!