java.net package is not supported by GWT. You can find the list of supported java packages here: http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html
-Venkatesh On Mon, Sep 21, 2009 at 2:35 PM, kbowe...@gmail.com <kbowe...@gmail.com>wrote: > > Hi Guys, > > I first posted about this problem (full details below) on the > AppEngine/Java list; a response there from Jason Parekh (also added > here at end) suggested that there may be problems with GWT, so I'm > here to check that out. Here's what I've run into: > --------------------- > I seem to have an issue with the Google Plugin Hosted Mode and > java.net on a Mac OS X 10.5.8. > I have Eclipse Galilio with: > Google App Engine Java SDK 1.2.5 > Google Plugin for Eclipse 3.5 > Google Web Toolkit SDK 1.7.0 > > I created a new default GWT/AppEngine project (both checked) named > TestOne with package minman. > I set out to try to add a simple URL Fetch call to the generated entry > point class TestOne.java. > In the class TestOne.java, the only added code is these additional > > imports at the top: > import java.io.BufferedReader; > import java.io.IOException; > import java.io.InputStreamReader; > import java.net.MalformedURLException; > import java.net.URL; > > The Eclipse editor does NOT complain about these. > I'm using the Mac JVM 1.5.0 MacOS X default in Eclipse. > > However, when I try to Debug or Run the TestOne app, the Google Web > Tookit Hosted Mode panel shows the following (in red after the > first): > > Initializing AppEngine server > Loading an instance of module 'testone' > Refreshing module from source > Validating new compiled units > Removing Units with errors > Errors in 'file:/blah...blah/TestOne/src/minman/client/ > TestOne.java > Line 6: The import java.net cannot be resolved > Line 7: The import java.net cannot be resolved > .....etc.... > [Of course, the app works ok without the 2 'import java.net.*' lines > listed above.] > Also, I have code in other Java projects including those two import > lines and which compiles and runs fine under Eclipse 3.3; ( GWT 1.5 > was used for that ) > ---------------- > Here's Jason Parekh's response on AppEngine/Java: > > http://groups.google.com/group/google-appengine-java/browse_thread/thread/30341c2ecc7671a1 > > Seems like there are two separate issues you're pointing out: > (1) The Eclipse validation is missing some classes that GWT really > doesn't allow, and > (2) java.net used to work in GWT, but not anymore? > If that breakdown is accurate, would you mind opening a bug for (1)? > Someone from the GWT team can give you an answer for (2). > > > Can this be resolved?? > Thanks in advance, > Ken Bowen > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---