Import java.net can not be resolved in Server mode

17 views
Skip to first unread message

Ovidiu Blejdea

unread,
Nov 24, 2009, 12:33:13 PM11/24/09
to Google Web Toolkit
I am not new to programming, but I am new to web programming, Java and
GWT, and this problem bugs the hell out of me. Going by the tutorials
I have read, on the server side of a GWT application, you can do any
Java operation, as this part gets compiled as a servlet. Now... why
can't it resolv a simple java.net.*?

Thanks in advance.

Yozons Support on Gmail

unread,
Nov 24, 2009, 5:39:47 PM11/24/09
to google-we...@googlegroups.com
I have no idea what you are asking, but you give no example of the problem.  Since the Java compile is just a java compile (nothing GWT about it), I'm sure you can use import java.net.*; in your server side code.

Google does provide another compiler to convert all the java code intended for the client -- which is compiled to javascript -- not java bytecode -- and it may have its own issues since you can only reference a limited set of the JRE standard classes (and it really doesn't use those classes which are in Java, but has its own versions that are client-ready to be converted to javascript).
Reply all
Reply to author
Forward
0 new messages