By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,654 Members | 1,519 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,654 IT Pros & Developers. It's quick & easy.

java.io.FileNotFoundException

P: 17
C:\>javac ExportCertificate.java
ExportCertificate.java:45: warning: BASE64Encoder is internal proprietary API an
d may be removed in a future release
wr.write(new sun.misc.BASE64Encoder().encode(buf));
^
1 warning

C:\>java ExportCertificate
java.io.FileNotFoundException: Certificate.cert (The system cannot find the file
specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at ExportCertificate.<init>(ExportCertificate.java:14 )
at ExportCertificate.main(ExportCertificate.java:59)
Attached Files
File Type: zip securityerror.zip (1.2 KB, 57 views)
Apr 4 '13 #1
Share this Question
Share on Google+
1 Reply


10K+
P: 13,264
A file is not being found. Print out the full path that is being used in the program and verify that the file does exist on disk.
Apr 4 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.