473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Why am I getting the Error "No source is available"?

108 100+
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 ...
Nov 11 '10 #1
0 1496

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Charles Law | last post by:
I have started getting "There is no source code available for the current location" when I run my VB.NET solution. I have no breakpoints set but cannot get rid of this message. The debugger...
4
by: amywolfie | last post by:
I would like to put code behind a Find button on a form which: 1) Performs a find based on a field on the form 2) If NO RECORDS ARE FOUND, then displays a custom "No Records Found" message box. ...
1
by: Daniel | last post by:
If my System.IO.StreamWriter Write method throws "The specified network name is no longer available." and I try to Dispose or Close it in the finaly clause the close or dispose method just throws...
5
by: Stan | last post by:
When I create a Web project and then try to add the files to it (Add Existing Item), I get this error message "The folder http://localhost/FinWeb is no longer availabe" In fact the folder and...
0
by: David | last post by:
I have a C# app that quits periodically with the message "No source file given". Sometimes it will only run for an hour or two. Other time it will run for days before it quits. I've searched...
1
by: Gary Wessle | last post by:
I am getting this error when I try to run the code below **************** f = open("~/m", "r") print f.read() **************** **************** :~$ python python/my.py Traceback (most...
0
by: Archana Kumar | last post by:
Hi, I try to open a Boa Constructor's instance when an error message : "No section:editor" (in a pop up window) is being thrown. I can see on the console that the last message shown is "running...
0
by: JymBoe | last post by:
I have built a Web Service with a multi-table dataset. When I attempt to discover the Web Service, I get an error saying "ItemsRow has no parameterless constructor" where ItemsRow is a row in the...
0
by: ralph sanchez | last post by:
Using Visual Basic 2005 (Express Edition), I've developed an XML schema on my computer for use with a project that I'm working on with a coworker. On his system, using the same version of visual...
0
by: sambotiger | last post by:
This is bugging the crap out of me. When I start any of my 2007 databases from the desktop folder, they all start with this error message. If I start them from within Access (running the 2010 Beta...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.