I am asking these questions to be sure about if am I doing something wrong on compilation process. My question is, is it normal that SmartGwt’s compilation time is a bit longer than other Gwt Libraries. And also, I’m using ListGrid and I got some warnings on hosted mode (“Malformed JSNI reference ‘constructor’, expected subsequent failures”) is it normal?
In addition to this, when I compile them, produces codes’ www/ SC folder have errors (which I think is related to my IDE Eclipse compiler properties) So, as I said, I’m just trying to be sure.
Thanks.
Please make sure that you have a large enough -Xmx parameter for the GWT compiler (eg -Xmx600m). SmartGWT has a large number of API’s and classes so this is possibly the reason for the compile time. However if you’re developing using the hosted mode this should not be an issue since you will not need to compile during development. The GWT team is also working on a “lite” version of the compiler which is much faster at the cost of not producing as “compact” JS output. This is specifically targeted for development cycles.
You can safely ignore the warnings you see in the console. See this for details.
I’m not sure what you mean by “produces codes’ www/ SC folder have errors”. Most likely and issue with your setup as the SmartGWT showcase compiles and runs fine. Please provide more details.
Sanjiv
I have the same errors in the sc/ folder.
specifically the “schema” folder and its contained xml files. It is caused by the xml content not actually being xml?
Like bdeniz I am using Eclipse.
I created a thread for it earlier here with alot more detail:
Just disable XML-Validation for these files or for the complete build-folder in Eclipse- or (preferrably) Project-Preferences.
Just FYI those errors come from XML fragments that are intentionally saved as XML fragments. Eclipse makes the assumption that any .xml file is a complete XML document and so flags them as errors.
Thanks. I just want to be sure.