Re: FW: problem compiling gwt 2.0 using ant

2010-01-20 Thread Sergey
Make sure, that you have just one version of GWT libraries in
classpath, it works for me.
-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




FW: problem compiling gwt 2.0 using ant

2009-12-27 Thread Rodrigue Lagoue Njinthe
Hi!

 

I'm facing a curious problem when compiling my gwt projects to javascript
using ant. The compilations worked perfectly with the previous GWT
versions... The most interessant part of the logging text is the following:

 

Validating newly compiled units

 [java]  Removing units with errors

 [java] [ERROR] Errors in
'jar:file:/home/appdir/.hudson/libraries/gwt/2.0/gwt-user.jar!/com/google/gw
t/user/client/ui/DockLayoutPanel.java'

 [java][ERROR] Line 20: The import
com.google.gwt.dom.client.Style.Unit cannot be resolved

 [java][ERROR] Line 122: Unit cannot be resolved to a
type

 [java][ERROR] Line 132: Unit cannot be resolved to a
type

 [java][ERROR] Line 133: Unit cannot be resolved to a
type

 [java][ERROR] Line 312: Unit cannot be resolved to a
type

 [java][ERROR] Line 313: Unit cannot be resolved to a
type

 [java][ERROR] Line 390: Unit cannot be resolved to a
type

 [java][ERROR] Line 390: Unit cannot be resolved to a
type

 [java][ERROR] Line 391: Unit cannot be resolved to a
type

 [java][ERROR] Line 391: Unit cannot be resolved to a
type

 [java][ERROR] Line 396: Unit cannot be resolved to a
type

 [java][ERROR] Line 396: Unit cannot be resolved to a
type

 [java][ERROR] Line 397: Unit cannot be resolved to a
type

 [java][ERROR] Line 397: Unit cannot be resolved to a
type

 [java][ERROR] Line 402: Unit cannot be resolved to a
type

 [java][ERROR] Line 402: Unit cannot be resolved to a
type

 [java][ERROR] Line 403: Unit cannot be resolved to a
type

 [java][ERROR] Line 403: Unit cannot be resolved to a
type

 [java][ERROR] Line 408: Unit cannot be resolved to a
type

 [java][ERROR] Line 408: Unit cannot be resolved to a
type

 [java][ERROR] Line 409: Unit cannot be resolved to a
type

 [java][ERROR] Line 409: Unit cannot be resolved to a
type

 [java][ERROR] Line 414: Unit cannot be resolved to a
type

 

 

It seems like the gwt compiler doesn't find the class Style.Unit used in
the class DockLayoutPanel, although both classes are present in the same
jar... On my IDE all works perfectly...

 

Any help will appreciated.

 

Here is the ant target for compilation to javascript

 

target name=gwt-compile depends=init description=Normal compilation
and Compile to JavaScript

!-- compile the java classes normally --

javac debug=true debuglevel=${debuglevel}
destdir=war/WEB-INF/classes source=${source} target=${target}

  src path=src /

  classpath refid=SMSGWTUI.classpath /

/javac

!-- compile the client java file to javascript --

java failonerror=true fork=true
classname=com.google.gwt.dev.Compiler

  classpath

pathelement location=src /

path refid=SMSGWTUI.classpath /

  /classpath

  jvmarg value=-Xmx256M /

  arg value=${gwt.module.id} /

/java

  /target

 

 

the java compilation (javac) runs successfully while the gwt compilation
doesn't... Any Ideas?

 

Rodrigue

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.