eclipse - Debugging java file compiling (using gwt) -
i asked in precedent question more precise compilation error message. here's fact : know nothing gwt , java. following docs, tried compile java files web project had been precedently developed using gwt. so, test , understand how work, took java folder (that had been precedently compiled appropriate tool) src folder of web app project in ide eclipse
when running compiler using command gwt compile, had message error :
compiling module java.org.primagora validating newly compiled units ignored 5 units compilation errors in first pass. compile -strict or -loglevel set trace or debug see errors. finding entry point classes [error] unable find type 'org.client.primagoraentrypoint' [error] hint: check type name 'org.client.primagoraentrypoint' meant [error] hint: check classpath includes required source roots
when @ error on file, example java.org.client.primagoraentrypoint, find error when declared "package org.client" @ beginning of file. there seem error path. thought java folder took correctly implemented in eclipse.
is file path problem ? how should debugg ? (i reallly know nothing gwt, java , eclipse)
best, newben
where gwt module file (i.e. file ends in .gwt.xml
), , contents? package list entrypoint org.client
, , full name org.client.primagoraentrypoint
, suggesting there file in org/client/primagoraentrypoint.java
. default, module files include client
package relative them source, if file in wrong location, won't work correctly.
based on this, module file should in org
package:
src/ org/ samplemodule.gwt.xml client/ primagoraentrypoint.java
from beginning of error, list java.org.primagora
module:
compiling module java.org.primagora
this suggests following structure:
src/ org/ client/ primagoraentrypoint.java java/ org/ primagora.gwt.xml
this doesn't make sense, since gwt looking java.org.client
package instead of org.client
package. try using package setup mentioned earlier here.
a better option might pick existing working project, gwt plugin eclipse create, or 1 of samples in gwt download.
Comments
Post a Comment