《java项目开发全程实录》
发表在Java图书答疑
2008-11-10
是否精华
是
否
版块置顶:
是
否
设置时间:
非永久
永久
起始时间:
结束时间:
是否扣分:
是
否
所有C/S结构中的实例只要设计到*.setHideActionText()方法编译都通不过 我的编译器版本是Myeclipse6.5
jdk6.0.还有其中一些*.isEmpty()方法编译也通不过。错误信息是:the method isEmpty is undefined for type String。
《欣欣电子商城》连接sql2000数据库的时候出现bug;错误信息是:Source not found for TDSConnection.<init>(String, String, BaseExceptions) line: not available.
最后问一下SQL2000的端口怎么查看和修改
由于我是初学者,希望老师详解。谢谢!
jdk6.0.还有其中一些*.isEmpty()方法编译也通不过。错误信息是:the method isEmpty is undefined for type String。
《欣欣电子商城》连接sql2000数据库的时候出现bug;错误信息是:Source not found for TDSConnection.<init>(String, String, BaseExceptions) line: not available.
最后问一下SQL2000的端口怎么查看和修改
由于我是初学者,希望老师详解。谢谢!
精彩评论 11
2008-11-11
沙发
我看到很多都提出相似的问题,我就不再开贴了,我的也是运行到登录窗口后就不动了,编译错误跟其它人一样,很长串
我的环境是WinXP+Myeclipse6.5
说明:SQL2000已经打SP4并且运行(服务器网络实用工具中可以查看并修改1433端口)
数据库已经附加
sa密码已经改为空,原不为空时更改dao的protected static String dbPwd = "XXXX";也不行
请老师们实际用一下看看问题出在哪里,JAVA我们都是新手,多谢耐心指教
另:请给出书中一些软件的下载地址,我找不到跟书上Myeclipse一样的版本,6.5的是E文的
谢谢!!!!!!!!
我的环境是WinXP+Myeclipse6.5
说明:SQL2000已经打SP4并且运行(服务器网络实用工具中可以查看并修改1433端口)
数据库已经附加
sa密码已经改为空,原不为空时更改dao的protected static String dbPwd = "XXXX";也不行
请老师们实际用一下看看问题出在哪里,JAVA我们都是新手,多谢耐心指教
另:请给出书中一些软件的下载地址,我找不到跟书上Myeclipse一样的版本,6.5的是E文的
谢谢!!!!!!!!
2008-11-12
地板
[FIELDSET][LEGEND]引自:1楼[/LEGEND]
我看到很多都提出相似的问题,我就不再开贴了,我的也是运行到登录窗口后就不动了,编译错误跟其它人一样,很长串
我的环境是WinXP+Myeclipse6.5
说明:SQL2000已经打SP4并且运行(服务器网络实用工具中可以查看并修改1433端口)
数据库已经附加
sa密码已经改为空,原不为空时更改dao的protected static String dbPwd = "XXXX";也不行
请老师们实际用一下看看问题出在哪里,JAVA我们都是新手,多谢耐心指教
另:请给出书中一些软件的下载地址,我找不到跟书上Myeclipse一样的版本,6.5的是E文的
谢谢!!!!!!!!
[/FIELDSET]
回复:
请把你的错误代码发过来。另外请确认你在构建路径添加了数据库驱动类库
我看到很多都提出相似的问题,我就不再开贴了,我的也是运行到登录窗口后就不动了,编译错误跟其它人一样,很长串
我的环境是WinXP+Myeclipse6.5
说明:SQL2000已经打SP4并且运行(服务器网络实用工具中可以查看并修改1433端口)
数据库已经附加
sa密码已经改为空,原不为空时更改dao的protected static String dbPwd = "XXXX";也不行
请老师们实际用一下看看问题出在哪里,JAVA我们都是新手,多谢耐心指教
另:请给出书中一些软件的下载地址,我找不到跟书上Myeclipse一样的版本,6.5的是E文的
谢谢!!!!!!!!
[/FIELDSET]
回复:
请把你的错误代码发过来。另外请确认你在构建路径添加了数据库驱动类库
2008-11-13
6L
java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.lzw.dao.Dao.<clinit>(Dao.java:40)
at com.lzw.login.Login$2.actionPerformed(Login.java:54)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.lzw.dao.Dao.getUser(Dao.java:120)
at com.lzw.login.Login$2.actionPerformed(Login.java:54)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.lzw.dao.Dao.<clinit>(Dao.java:40)
at com.lzw.login.Login$2.actionPerformed(Login.java:54)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.lzw.dao.Dao.getUser(Dao.java:120)
at com.lzw.login.Login$2.actionPerformed(Login.java:54)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
2008-11-13
7L
JXCManage工程中
1.Resource.java中的代码
/**************
package res;
public class Resource {
}
****************//
错误:The declared package "res" does not match the expected package "" JXCManager/res Resource.java
2.IsEmpty错误:The method isEmpty() is undefined for the type String
这个是什么原因造成的,如何解决
1.Resource.java中的代码
/**************
package res;
public class Resource {
}
****************//
错误:The declared package "res" does not match the expected package "" JXCManager/res Resource.java
2.IsEmpty错误:The method isEmpty() is undefined for the type String
这个是什么原因造成的,如何解决
2008-11-18
10L
[FIELDSET][LEGEND]引自:9楼[/LEGEND]
jinkxboy你需要添加数据库驱动的类库,否则无法链接数据库,另外参照我对shun的回复设置Eclipse的编译器版本。
shun你需要安装SQL Server2000的SP3或者SP4补丁。
[/FIELDSET]
回复:
小小邪老师,如果您所说的驱动类库指mabase.jar,mssqlserver.jar,msutil.jar这三个文件的话,我已经加入LIB并"添加至构建路径".
对于设置Eclipse的编译器版本
在windows --preferences--java--compiler下
设置compiler compliance level为6.0后Apply
关闭Eclipse,再打开eclipse
在JXCManager中也修改了
点run as JAVA Application时报错not found main class.programs will exit
这又是什么原因呢
我想由Delphi转入JAVA,很多东西都不懂,请不吝指教,万分感谢!!!
jinkxboy你需要添加数据库驱动的类库,否则无法链接数据库,另外参照我对shun的回复设置Eclipse的编译器版本。
shun你需要安装SQL Server2000的SP3或者SP4补丁。
[/FIELDSET]
回复:
小小邪老师,如果您所说的驱动类库指mabase.jar,mssqlserver.jar,msutil.jar这三个文件的话,我已经加入LIB并"添加至构建路径".
对于设置Eclipse的编译器版本
在windows --preferences--java--compiler下
设置compiler compliance level为6.0后Apply
关闭Eclipse,再打开eclipse
在JXCManager中也修改了
点run as JAVA Application时报错not found main class.programs will exit
这又是什么原因呢
我想由Delphi转入JAVA,很多东西都不懂,请不吝指教,万分感谢!!!