使用fat jar打包后抛出异常(sqljdbc签名引起)
来源:互联网 发布:耐思尼克域名 编辑:程序博客网 时间:2024/05/13 21:53
问题:
Exception in thread "main" java.lang.SecurityException: invalid SHA1 signature file digest for com/microsoft/sqlserver/jdbc/SQLServerException.class
解决方法:
Mircosoft had signed the jar file thru their own tools. So when you try to use the jar file directly or signing by your own tool and using on your JNLP will give this problem.
To solve this problem steps to be followed.
1. Extract the sqljdbc.jar or sqljdbc4.jar file
(解压缩sqljdbc4.jar)
2. Goto META-INF Folder
(进入META-INF文件夹)
3. Open MANIFEST.MF and delete all the lines other than first line and save it
(打开MANIFEST.MF文件,删除第一行之外的所有内容并保存)
4. Delete other files which exist in the same folder
(删除该目录内其他所有文件及文件夹)
5. Finally once again make a new jar file including *com* and *META-INF* folder as sqljdbc.jar or sqljdbc4.jar
(重新将com目录和META-INF目录打包为 sqljdbc.jar或sqljdbc4.jar)
- 使用fat jar打包后抛出异常(sqljdbc签名引起)
- 使用Fat Jar打包后 Uncaught error fetching image:
- 使用Fat Jar打包后 Uncaught error fetching image:
- Eclipse中使用fat-jar打包
- fat.jar 打包真好用
- Fat jar打包工具
- Fat jar打包工具
- Eclipse打包(导出)jar文件攻略(二)--使用Eclipse插件Fat Jar
- Fat jar打包工具 eclipse插件安装方法 如何使用fat打包运行
- myeclipse 10 安装Fat jar打包插件以及如何使用fat打包工具
- JAVA调用DLL -- JNA和Fat Jar的使用及打包问题(一)
- JAVA调用DLL -- JNA和Fat Jar的使用及打包问题(二)
- Eclipse下使用Fat Jar插件对源代码进行打包
- eclipse打包插件 fat jar
- eclipse 打包插件fat jar
- java fat jar 打包工具
- Fat Jar打包插件方法
- Fat Jar打包插件方法
- UNIX哲学
- .Net Session丢失的解决办法小结(转)
- Log4j日志文件存放到项目目录下
- Win7卸载IE9
- HOWTO build arm-linux toolchain for ARM/XSCALE
- 使用fat jar打包后抛出异常(sqljdbc签名引起)
- dwr的用法
- POSIX 条件变量详细解析
- c# 通过流导出数据库数据,写进excel中
- Win7下设置cmd的开始位置
- Web Framework Benchmarks
- HashCode和equal方法
- 判断字符串是否为IP地址
- Google使用技巧