Signing applet on the MAC problems
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Naomi_Proctor
Posted On:   Monday, April 29, 2002 09:07 AM

Hi There, Well I've finally go my signed applet to work on Windows Internet Explorer using CAB file and I'm trying to get it to work on MAC Internet Explorer: I followed the instructions at the following site to create a self-signed applet for testing: http://developer.apple.com/technotes/tn/tn1175.html However I am getting a Apple security exception when trying to write to a file output: /29/2002 @ 8:27:46 here throwable exception file writing test trying to write to file: output.txt Exception occurred during event dispatching:com.apple.mrj.JManager.J   More>>


Hi There,



Well I've finally go my signed applet to work on Windows
Internet Explorer using CAB file and I'm trying
to get it to work on MAC Internet Explorer:



I followed the instructions at the following site to create
a self-signed applet for testing:



http://developer.apple.com/technotes/tn/tn1175.html



However I am getting a Apple security exception when trying
to write to a file output:



/29/2002 @ 8:27:46

here

throwable exception

file writing test

trying to write to file: output.txt

Exception occurred during event dispatching:com.apple.mrj.JManager.JMAppletSecurityExc:security.checkwrite: output.txt, /Macintosh HD/Applications(Mac OS 9)/Internet Explorer 5 Folder/output.txt

at com.apple.mrj.JManager.JMAppletSecurityOld.checkWrite MAppletSecurityOld.java)

at java.io.FileOutputStream. (FileOutputStream.java

at java.io.FileWriter. (FileWriter.java)

at testapp.actionPerformed(testapp.java:121)

at java.awt.Button.processActionEvent(Button.java)

at java.awt.Button.processEvent(Button.java)

at java.awt.Component.dispatchEventImpl(Component.java)

at java.awt.Component.dispatchEvent(Component.java)

at java.awt.EventDispatchThread.run entDispatchThread.java




Here is the code I am using:



			


public void actionPerformed(ActionEvent e) {



if (e.getSource()==saveM) {


System.out.println("file writing test");

try {


System.out.println("trying to write to file: output.txt");

FileWriter f = new FileWriter("output.txt");

f.write("suceed");

f.close();

System.out.println("SUCEEDED in writing to file");



} catch (IOException a) {



System.out.println("IOEXCEPTION while trying to write to file");

}

}

}


   <<Less
About | Sitemap | Contact