Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Accesing a file in the server from a client side class

    Hi everyone!

    My question is very simple. I want to show, in the client side, the name of the files that I have in a directory of my server. If I use the java.io.File class, I get an error ("did you forget to inherit a required module?") but it works.

    I've tried to make an asynchronous call, but sometimes I get a synchronicity error, because when I try to show them (System.out....), it hasn't already finished the call to the server side class.

    So, I think that there's no problem if I use the File class in the client side if my goal is to show the name of files in the server side, but, if so, how can I avoid that error message?

    Thanks in advance
Working...
X