Hi,
thanks for your reply.
I deleted my gwt-project and created a whole new project with the
applicationCreator and projectCreator.
- I added the external jar like you said with the build-path.
- I coded following code:
package com.reko.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.maps.client.InfoWindowContent;
import com.google.gwt.maps.client.MapWidget;
import com.google.gwt.maps.client.control.LargeMapControl;
import com.google.gwt.maps.client.geom.LatLng;
import com.google.gwt.user.client.ui.RootPanel;
public class MyGmapsApplication implements EntryPoint {
private MapWidget map;
public void onModuleLoad() {
map = new MapWidget(new LatLng(39.509,-98.434),2);
map.setSize("500px","500px");
map.addControl(new LargeMapControl());
map.getInfoWindow().open(map.getCenter(),new
InfoWindowContent("World's Largest Ball of Twine"));
RootPanel.get("slot1").add(map);
}
}
- When I compile and shell the code, I get this Exception from the
shell :
[TRACE] Analyzing source in module 'com.reko.MyGmapsApplication'
[ERROR] Line 4: The import com.google.gwt.maps cannot be resolved
[ERROR] Line 5: The import com.google.gwt.maps cannot be resolved
[ERROR] Line 6: The import com.google.gwt.maps cannot be resolved
[ERROR] Line 7: The import com.google.gwt.maps cannot be resolved
[ERROR] Line 23: MapWidget cannot be resolved to a type
[ERROR] Line 27: map cannot be resolved
[ERROR] Line 27: MapWidget cannot be resolved to a type
[ERROR] Line 27: LatLng cannot be resolved to a type
[ERROR] Line 29: map cannot be resolved
[ERROR] Line 31: map cannot be resolved
[ERROR] Line 31: LargeMapControl cannot be resolved to a type
[ERROR] Line 33: map cannot be resolved
[ERROR] Line 33: map cannot be resolved
[ERROR] Line 33: InfoWindowContent cannot be resolved to a type
[ERROR] Line 40: map cannot be resolved
[TRACE] Finding entry point classes
[ERROR] Unable to find type 'com.reko.client.MyGmapsApplication'
[ERROR] Hint: Previous compiler errors may have made this type
unavailable
[ERROR] Hint: Check the inheritance chain from your module; it may not
be inheriting a required module or a module may not be adding its
source path entries properly
[ERROR] Failure to load module 'com.reko.MyGmapsApplication'
[ERROR] Failure to load module 'null'
com.google.gwt.dev.shell.HostedModeException: Can't find frame window
for 1
at com.google.gwt.dev.shell.BrowserWidget.doUnload(BrowserWidget.java:
352)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access
$400(BrowserWidgetIE6.java:36)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.handleUnload(BrowserWidgetIE6.java:
109)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:
55)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:
125)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
293)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
196)
at
org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
117)
at
org.eclipse.swt.internal.ole.win32.IOleInPlaceObject.InPlaceDeactivate(IOleInPlaceObject.java:
21)
at
org.eclipse.swt.ole.win32.OleClientSite.deactivateInPlaceClient(OleClientSite.java:
524)
- The import does not work, although I added the jar and the IDE
accepted it.
Could you please, really please explain me how I can solve my
problem?