Re: No source code is available for type java.io.File; did you forget to inherit a required module?

2009-03-04 Thread ginger_ninja
Hi Raghu, The GWT compiler complains because it doesn't support the full range of Java classes present in your run of the mill JRE. The reason for this can be found in asking the question; What does the GWT compiler produce as output?. Answering this question yields a far more pertinent

No source code is available for type java.io.File; did you forget to inherit a required module?

2009-03-03 Thread raghu prashanth k b
Hi...I am new to GWT and i'm trying to develop a small application...but here i need to open a directory and count the no.of files in it...I'm doing it as follows: File dir = new File(file); String[] pages = dir.list(); int count =

Re: No source code is available for type java.io.File; did you forget to inherit a required module?

2009-03-03 Thread Shawn Brown
I have imported java.io.File but the GWT compiler gives me the following error.plz help               No source code is available for type java.io.File; did you forget to inherit a required module? How are you compiling? shell script or ant build? In either case, your .java file

Re: No source code is available for type java.io.File; did you forget to inherit a required module?

2009-03-03 Thread Isaac Truett
Doesn't matter. You won't be able to use java.io.File on the client. You can't access the client's file system without using an Applet, Flash, ActiveX, or other component to which the user has granted permission. On Tue, Mar 3, 2009 at 11:57 AM, Shawn Brown big.coffee.lo...@gmail.com wrote: I

Re: No source code is available for type java.io.File; did you forget to inherit a required module?

2009-03-03 Thread Lothar Kimmeringer
raghu prashanth k b schrieb: Hi...I am new to GWT and i'm trying to develop a small application...but here i need to open a directory and count the no.of files in it...I'm doing it as follows: File dir = new File(file); String[] pages = dir.list();