当前位置:  技术问答>java相关

cannot resolve symbol错误!急!

    来源: 互联网  发布时间:2015-11-20

    本文导语:  用JCreator编译java代码时,出现cannot resolve symbol错误,代码如下: package pj.cwt.database; import java.sql.*; public class DBConnect {     private Connection conn;     private Statement stmt;     private PreparedStatement prepstmt;    ...

用JCreator编译java代码时,出现cannot resolve symbol错误,代码如下:

package pj.cwt.database;

import java.sql.*;

public class DBConnect
{

    private Connection conn;
    private Statement stmt;
    private PreparedStatement prepstmt;
    private DBConnectionManager dcm;
...
...
...
错误信息:
D:tomcatjakarta-tomcat-3.3.1webappsROOTWEB-INFclassespjcwtdatabaseDBConnect.java:15: cannot resolve symbol
symbol  : class DBConnectionManager  
location: class pj.cwt.database.DBConnect
    private DBConnectionManager dcm;
            ^
是不是CLASSPATH设置错误?
我的CLASSPATH=d:j2sdk1.4.0libtools.jar;d:tomcatjakarta-tomcat-3.3.1classes;d:tomcatjakarta-tomcat-3.3.1lib;D:tomcatjakarta-tomcat-3.3.1webappsROOTWEB-INFclassespjcwtdatabase

请问该如何解决?


|
不一定绝对,但至少,你的classpath是不正确的.
加个 . 
----------
CLASSPATH=.;d:j2sdk1.4.0libtools.jar;d:tomcatjakarta-tomcat-3.3.1classes;d:tomcatjakarta-tomcat-3.3.1lib;D:tomcatjakarta-tomcat-3.3.1webappsROOTWEB-INFclassespjcwtdatabase



|
引用方法的文件名与方法定义不符吧,检查一下方法是不是没加"()"

|
加一句:
import pj.cwt.database.*;
吧!

    
 
 

您可能感兴趣的文章:

  • PHP严重致命错误处理:php Fatal error: Cannot redeclare class or function
  • 数据库 iis7站长之家
  • 请教:提示错误:cannot resove symbol
  • 用硬盘安装solaris时出现mount point cannot be determined错误
  • PHP错误Cannot use object of type stdClass as array in错误的解决办法
  • vsftp连接错误cannot locate user entry:vsftpd
  • java.lang.IllegalStateException: Cannot forward as OutputStream or Writer has already been obtained,这个错误怎样解决?
  • Linux ES4 上面安装apache2.0.55 出现 C compiler cannot create executales 错误
  • ubuntu8.04编译lmule时遇到的错误 error: C++ compiler cannot create executables
  • 这是 /usr/bin/ld: cannot find -lc 什么错误?
  • configure: error: cannot guess build type; you must specify one 错误求救!!!
  • 这样的解压缩错误是怎么回事?tar: wine-20030408/controls/button.c: Cannot change ownership to uid 500, gid 100: 不允许的操作
  • 在Redhat上绑定端口出现错误:Cannot assign requested address
  • makefile编译产生类似错误"Cannot find a rule to create target libbz2. from dependencies.是什么原因,谢谢
  • vsftp下cannot locate user entry:nobody错误求助(高分)
  • 看不懂的段错误:Cannot access memory at address 0xfbfebcc8
  • 运行某程序提示 libmysqlclient_r.so.14: cannot open shared object file错误 急。。。
  • Mysql错误Cannot find or open table x/x from the internal问题解决方法
  • 编译错误:/usr/bin/ld: cannot find -lldap50
  • linux下安装Oracle 10g /etc/profile 出现 -bash: ulimit: pipe size :cannot modify limit:invalid argument 的错误
  • 求助:centos 5.5 开机报PCI: Cannot allocate resource region错误
  • Why?????? DbPerson.java:286: cannot resolve symbol!!!!
  •  
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • 使用ld链接器出现cannot find entry symbol __start问题
  • 如何解决cannot connect to X server :0.0
  • ./usr/bin/ld: cannot find -lbz2如何解决?
  • 求助 简单测试字符驱动 Cannot allocate memory
  • 请问“error: cannot read: Tb.java”是什么原因啊???
  • 启动X,提示Authentication failed - cannot start X server
  • Cannot bind to named socket 不知道缺少了什么?
  • 运行rpm时出现:error: cannot create %sourcedir /usr/src/redhat/SOURCES!!!!!
  • touch: cannot touch '/var/lock/subsys/sshd' : 只读文件系统[确定]
  • 运行出错 cannot find /lib/ld-linux.so.2
  • Gtk-WARNING **: cannot open display
  • ftp cannot change directory
  • /usr/bin/ld: cannot find -ltermcap
  • GCC编译问题,cannot find -lm
  • /usr/bin/ld:cannot find -lbootstrap
  • configure: error: cannot run C++ compiled programs.
  • [suse]cannot get binary type
  • cannot read file data: Error 21
  • cannot find -lmyfunction
  • bash: ./abc.sh: cannot execute binary file ?????
  • 我的电脑启动时提示You cannot run KPF as root


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3