Hi, I've been struggling to run a GWT for a while and it doesn't work...
My source code ::
<CODE>
package org.yournamehere.client;
import com.google.gwt.ajaxloader.client.JsDate;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.maps.client.MapWidget;
import com.google.gwt.maps.client.control.Control;
import com.google.gwt.maps.client.control.SmallMapControl ;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.datepicker.client.DateBox;
public class MainEntryPoint implements EntryPoint {
public void onModuleLoad() {
final Label label = new Label("Hello, GWT!!!");
//final Button button = new Button("Click me!");
final DateBox db=new DateBox();
Button b = new Button("Jump!") ;
MapWidget mw=new MapWidget();
mw.setSize("500px", "500px");
mw.addControl(new SmallMapControl() );
// public void onClick(ClickEvent event) {
// Window.alert("How high?");
b.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
label.setVisible(true);
label.setText(db.getTextBox().getText());
}
});
RootPanel.get().add(label);
RootPanel.get().add(b);
RootPanel.get().add(db);
}
}
</CODE>
Errors::
GWT Compiling client-side code.
Compiling module org.yournamehere.Main
Validating newly compiled units
[ERROR] Errors in 'file:/D:/Program%20Files/NetBeans%206.8/hello1GWT/src/java/org/yournamehere/client/MainEntryPoint.java'
[ERROR] Line 40: No source code is available for type com.google.gwt.maps.client.MapWidget; did you forget to inherit a required module?
[ERROR] Line 42: No source code is available for type com.google.gwt.maps.client.control.SmallMapControl ; did you forget to inherit a required module?
Finding entry point classes
[ERROR] Unable to find type 'org.yournamehere.MainEntryPoint'
[ERROR] Hint: Check that the type name 'org.yournamehere.MainEntryPoint' is really what you meant
[ERROR] Hint: Check that your classpath includes all required source roots
D:\Program Files\NetBeans 6.8\hello1GWT\nbproject\build-gwt.xml:140: The following error occurred while executing this line:
D:\Program Files\NetBeans 6.8\hello1GWT\nbproject\build-gwt.xml:289: Java returned: 1
BUILD FAILED (total time: 5 seconds)
------------------------------------------
In the Main.gwt.xml, the error codes are from the line
line 140:: <antcall target="do-gwt-compile-20" />
line 289 ::
<target name="do-gwt-compile-20" if="gwt.version.20"
unless="gwt.compile.unneeded" depends="-init-gwt-dir">
<!-- You can override this property in the 'gwt.properties' file -->
<property name="gwt.compiler.output.style" value="OBFUSCATED"/>
<property name="gwt.compiler.logLevel" value="WARN"/>
<echo>GWT Compiling client-side code.</echo>
<java failonerror="true"
classname="com.google.gwt.dev.Compiler" fork="true"
jvmargs="${gwt.compiler.jvmargs}">
If you could get this sorted out for me ...