Hello I Create a Java app开发者_如何学编程let and run successfully (when press button the notepad Run) form netbeans but when run the Application from web page the notpad.exe cannot be run
a Java applet run by default in a "sandbox" that means, it can't access to the user's file system and program. When you try it, in your netbean, it's different because the "sandbox" isn't apply.
What Applets Can and Cannot Do
Maybe it's not allowed for java applets to run notepad on user's computer ?
You have to get applet signed, so that you can access Native programs(.exe). Like said above, Currently its working in sandbox mode. sign the applet and it will work
精彩评论