java.sql.SQLException
is not part of emulated Java or GWT core classes.
GWT compiles Java code to Js/HTML; but only if
a) It's emulated by GWT compiler
b) It's part of standart GWT client libraries
c) Derived from a or b
So, you must think that GWT client code is constained by the browser
capabilities; you can do everything a standart browser can do; but no
more - and SQL querys are out of the dominion of the browser, you must
implement it in your server code
Oskar
On 26 nov, 23:54, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi, I am having some problems with my GWT. I am new to GWT so may be
> making some very obvious mistakes. Basically, I have written 2
> classes, one which deals with the GUI (which is the Entry Point class)
> and one which connects to an SQL database, called ItemConnector. It
> compiles fine in eclipse but when I run in the development shell I get
> the following errors:
>
> [ERROR] Line 73: No source code is available for type
> com.project.mysql.ItemsConnector; did you forget to inherit a required
> module?
>
> [ERROR] Line 76: No source code is available for type
> java.sql.SQLException; did you forget to inherit a required module?
>
> Here is my code from line 73:
>
> private ItemsConnector itemConnector;
>
> //Constructor
> public MyApplication() throws SQLException{
> itemConnector = new ItemsConnector();
> }
>
> Can someone see where I am going wrong? Im guessing its something to
> do with the SQL I am trying to run, but have no idea how to solve
> this. Please can someone point me in the right direction?
>
> Cheers,
> Jack
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---