巫师的蜕变

导航

 

1、问题描述:

java 打包异常:ZIP file must have at least one entry

解决方案:

         压缩的时候路径问题

 

2、问题描述:在使用FileInputStream时,读取文件的时候

    java.io.FileNotFoundException: .\xx\xx (拒绝访问。)

    at java.io.FileOutputStream.open(Native Method)

    at java.io.FileOutputStream.<init>(Unknown Source)

    at java.io.FileOutputStream.<init>(Unknown Source)

    at com.yaohong.test.InputStreamTest.fileInputStream(InputStreamTest.java:13)

    at com.yaohong.test.InputStreamTest.main(InputStreamTest.java:27)

解决方案:

  访问了一个文件目录,而不是文件

java 打包异常:ZIP file must have at least one entry

posted on 2018-05-30 10:09  jacunjpg  阅读(315)  评论(0编辑  收藏  举报