Hello, This is a standard question here, so I'm going to link to one of the many responses in this forum (from January 2007)
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/0d4a9b306946dcb5 To summarize: GWT is client side/web browser code written in Java. You use the standard Java development methodology and syntax with one notable exception: the GWT compiler compiles all of this Java into native Javascript/HTML/CSS. So the only true Java libraries that you can import into a client side package are ones that the compiler can convert into Javascript. java.sql.* is not one of them. And (nothing official or binding here) but it seems highly unlikely that it ever will. There are some very strict boundaries that a web browser has to live inside of, and I would think that directly connecting to a database from a web browser (which would be cool) isn't likely to happen. Just like there isn't a mountain of javascript (my official term for a library written in javascript) that connects to a database, it's a limitation of the browser container that everything runs inside of. The standard solution here, which is standard to most web browser based products, GWT or otherwise, is to create a middle tier and connect from there. GWT-RPC is a terrific way for GWT clients to connect to Java middle tiers, using a syntax that is virtually the same as any basic remoting type. Your middle tier lives on a web server which is true blue 100% Java, and therefore would be able to import the java.sql.* libraries. Hope this adds some clarity. Later, Shaffer On Oct 26, 12:46 am, tapan <[EMAIL PROTECTED]> wrote: > Hi guys > > can i use the java jre with gwt. > please help. > some of them which i require are > > Class.forName > java.sql.DriverManager > java.sql.Statement > > etc. > > Please help --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
