读取 $JAVA_HOME/jre/lib/ext/mysql-connector-java-3.2.0-alpha-bin.jar 时出错cannot read zip file解决
2013-01-01 10:48
776 查看
环境
RedHat Linux 9 + VWWare 8.0 + SSH 3.2.9 + Putty 0.62 + MySQL 3.2问题
通过JDBC连接MySQL,出现“读取/usr/java/jdk1.6.0_27/jre/lib/ext/mysql-connector-java-3.2.0-alpha-bin.jar时出错cannotread zip file”
解决
换jar包。比如之前使用的mysql-connector-java-3.2.0-alpha-bin.jar只有300接近200K,换了个接近400K的就对了。估计是最开始那个是zip文件。相关文章推荐
- 网站用了mysql-connector-java-5.1.13-bin.jar包,服务器上安装的却是MYSQL 6.0,结果就出错了,出错提示没纪录下来
- 解决java 项目导入后出现的问题 ---cannot be read or is not a valid ZIP file
- 解决使用maven的java web项目导入后出现的有关问题 -cannot be read or is not a valid ZIP file
- Unable to locate JAR/zip in file system as specified by the driver definition: mysql-connector-java-
- 解决使用maven的java web项目导入后出现的有关问题, -cannot be read or is not a valid zip file
- Archive for required library: ‘WebContent/WEB-INF/lib/xxx.jar cannot be read or is not Zip file
- Struts+Mysql+Tomcat5.0.28+mysql-connector-java-3.0.16-ga-bin.jar 国际化乱码解决方法
- Struts+Mysql+Tomcat5.0.28+mysql-connector-java-3.0.16-ga-bin.jar 国际化乱码解决方法
- 解决使用maven的java web项目导入或新建添加pom配置后出现的有关问题 -cannot be read or is not a valid ZIP file
- Web项目Java读取Properties文件出现“The system cannot find the file specified”解决
- MysqL驱动mysql-connector-java-5.1.5-bin.jar的位置
- mysql-connector-java-5.0.3-bin.jar中的Preparedstatement居然没有isClosed()方法
- ant jar 命令 将外部用到的包例如(mysql-connector-java-5.1.18-bin.jar)打包到新的包中
- 解决 eclipse XXX cannot be read or is not a valid ZIP file
- 解决java web项目导入后出现的问题 ---cannot be read or is not a valid ZIP file
- mysql-connector-java-3.1.10-bin-g.jar 和 mysql-connector-java-3.1.10-bin.jar两个文件有什么不同呀?
- datagrip在离线状态如何安装数据驱动mysql-connector-java-5.1.40-bin.jar
- “访问限制:由于对必需的库C:\Program Files\Java\jre1.8.0_20\lib\rt.jar具有一定限制,因此无法访问构造函数JFrame()”的解决方法
- Error: Password file read access must be restricted: C:/Java/jdk1.6.0_14/jre/lib/management/jmxremote.password
- hive ,sqoop使用的jdbc驱动版本(mysql-connector-java-5.1.23-bin.jar)影响hive使用