Topic: 打包后不能运行的问题! |
Print this page |
1.打包后不能运行的问题! | Copy to clipboard |
Posted by: q_yuan Posted on: 2005-11-30 10:27 我有一个程序,连接SQL数据库的驱动是: Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); 我用的是JCREATOR写的。在JCREATOR中运行没有一点问题,但是我打包以后再用命令运行就会提示: java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver java.sql.SQLException: No suitable driver Exception in thread "main" java.lang.NullPointerException at CallingCard2.initComponents(CallingCard2.java:595) at CallingCard2.<init>(CallingCard2.java:28) at CallingCard2.main(CallingCard2.java:1206) 但我把驱动改成JDBC-ODBC桥来连接,打包以后再用命令可以运行。请教高手怎么解决! |
2.Re:打包后不能运行的问题! [Re: q_yuan] | Copy to clipboard |
Posted by: q_yuan Posted on: 2005-12-05 08:20 问题已经解决了! |
3.Re:打包后不能运行的问题! [Re: q_yuan] | Copy to clipboard |
Posted by: hanibal Posted on: 2005-12-16 08:26 咋解决的? |
4.Re:打包后不能运行的问题! [Re: q_yuan] | Copy to clipboard |
Posted by: dfesd Posted on: 2005-12-17 00:16 看不懂哦 |
5.Re:打包后不能运行的问题! [Re: q_yuan] | Copy to clipboard |
Posted by: icystorm Posted on: 2006-01-05 12:26 将驱动的三个文件一起打包 |
6.Re:打包后不能运行的问题! [Re: q_yuan] | Copy to clipboard |
Posted by: langhua983 Posted on: 2006-01-08 13:15 呵 我以前也有一次和你一样的情况哦~~~~~~~ |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |