常见问题—打包压缩问题

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

猜你喜欢

转载自www.cnblogs.com/zjiacun/p/9109376.html