TeamJava Forum
[ Read Responses | Post a New Response | Return to the Index ]
[ Previous | Next in Thread | Next ]
creat file in java + jar files
Posted by paria on Sunday, 24 August 2003, at 8:29 a.m.
Hello;
I used this code from java tutorial to creat a file and access it:
****************
try{
String fileName=System.getProperty("user.home",File.separatorChar+"home"+File.separatorChar+"monicap")+File.separatorChar+"paria.dat";
File dtt=new File(fileName);
}catch (Exception e){System.out.print(e.toString());}
***********
when I run my application I don't get any errors but I can not my file any where in my system...
I added this part to my program:
dtt.exists();
and now I see this error:
****java.security.AccessControlException: access denied (java.io.FilePermission D:\D
ocuments and Settings\paria\af66e406b9392867.dat read)
1-do you have any hints about this code?
2-I don't know what's "monicap"would you please explain about it for me?
3-and the last question is not directly about this code:do u know how should I add some new classes to an existing jar file?
thanx
Responses
Post a New Response
The TeamJava Forum is maintained with WebBBS 2.24.