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

Please select: Discussion Question Answer
Pulse Check - enter num: 1067953254

Your Name:

E-Mail Address:

Subject:

Message:


If you'd like to include a link to another page with your message,
please provide both the URL address and the title of the page:

Optional Link URL:

Optional Link Title:


If you'd like to have the option of deleting your post later,
please provide a password (CASE SENSITIVE!):

Password:



Password:

The TeamJava Forum is maintained with WebBBS 2.24.


TeamJavaHome | Ind. Registry | Co. Registry | Java Links
Jobs Listings Forum | TeamJava Books | Java FAQ Archives

AWN

Copyright © 1995-2003 Active Web Networks, all rights reserved.
(Note: We share no direct association with Sun Microsystems, Inc.)