Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

regarding readin files in applets

  Asked By: Rani    Date: Jan 27    Category: Java    Views: 432

im developin this application tht requires the applet to read a file
and display to the user.
works fine when run from appletviewer , but gives critical errors when
run through a browser.
but runnin through browser is necessary. pls help. any suggestions.



4 Answers Found

Answer #1    Answered By: Earl Stone     Answered On: Jan 27

look en the java website how to sign applets  and grant permissions.

Answer #2    Answered By: Anna Hill     Answered On: Jan 27

That's impossible.
Unless you sign your applet.

Answer #3    Answered By: Alexander Fields     Answered On: Jan 27

look at your javaplugin.

also, look at file permissions.

put a try { } catch (Exception e) { e.printStackTrace(); } around init
and your readfile method.

look at the java console for possible errors.

Answer #4    Answered By: Vivian Ruiz     Answered On: Jan 27

From where does the applet  get the file from?

The problem is probably with file permissions, as the others have said. You
don't have access to read  from or write to any files  on the user's hard
disk, unless you sign your applet (I think about $25/year).

Didn't find what you were looking for? Find more on regarding readin files in applets Or get search suggestion and latest updates.