*
The moose likes Applets and the fly likes Java applet in HTML with Javascript, security issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Java applet in HTML with Javascript, security issues" Watch "Java applet in HTML with Javascript, security issues" New topic
Author

Java applet in HTML with Javascript, security issues

Robin Barraclough
Greenhorn

Joined: Apr 07, 2009
Posts: 2
Hi everyone

I'm a pretty seasoned HTML/Javascript developer, but know next to nothing about Java applets, so I've got a question I hope some people might be able to help me out with.

I'm trying to set up an applet on a website which is designed to access the user's local machine, install a windows executable game and run the game, all from the site. I believe this to be possible once the jar package has been certified, but is there any way that local machine disk i/o can be achieved without the use of a signed applet, e.g. while in testing mode

I've embedded the applet using <applet></applet> tags, and that all seems to work ok, and I'm getting stuff appearing on the webpage. However, I can't get it to do very much...

Basically, I'm getting the error



when the applet tries to create temporary folders on the local machine for installation.

Any help/advice would be gratefully appreciated
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

"Solarise Design", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
Your new screen name is no better than the old one. Please read the policy and adjust it accordingly.

As to your question, applets can't access the local file system. See HowCanAnAppletReadFilesOnTheLocalFileSystem for the two possible ways around that.


Ping & DNS - my free Android networking tools app
Robin Barraclough
Greenhorn

Joined: Apr 07, 2009
Posts: 2
Thank you for the information, Ulf.

I was unaware that my screen name was unacceptable, I generally try and avoid using my real name on forums where possible.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
Un-real names are fine, but they need to look like they could be real ... which the previous ones didn't.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java applet in HTML with Javascript, security issues
 
Similar Threads
More applet notinited
Applet Popup and other Methods
outputing javascript from a servlet
Accessing the Websphere Server properties using Applets
JApplet Browser security issues