Classpath problem ? Cannot extend a class


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Classpath problem ? Cannot extend a class

  1. #1
    John Mcluskey Guest

    Classpath problem ? Cannot extend a class


    Greetings ! I am extending EmpQBean.java from SQLBean.java. However, I
    receive the following error . FYI, I am not using any IDE-specific
    internal compiler, instead using commandline "javac".

    ClassPATH :-

    CLASSPATH=/opt/java/lib/tools.jar:/opt/jakarta-
    tomcat/webapps/summary/dev/classes/CLASSES12.zip:/opt/
    jakarta-tomcat/webapps/summary/dev/classes/xerces.jar:/opt/jakarta-
    tomcat/webapps/summary/dev/classes
    /mybeans/ export CLASSPATH

    - - - - - - - - - - - - - - - - - -

    I compile the source files from :-

    /opt/jakarta-tomcat-4.0.3/webapps/summary/dev/WEB-INF/classes/mybeans

    My SQLBean.java can successfully be compiled except EmpQBean.java. Please

    advice :-


    - - - - - - - - - - - - - - - - - -
    ERROR MESSAGE

    EmpQBean.java:6: cannot resolve symbol
    symbol : class SQLBean
    location: class mybeans.EmpQBean
    public class EmpQBean extends SQLBean{
    ^
    EmpQBean.java:22: cannot resolve symbol
    symbol : variable myConn
    location: class mybeans.EmpQBean
    stmt = myConn.createStatement();
    ^
    2 errors


  2. #2
    MarkN Guest

    Re: Classpath problem ? Cannot extend a class


    Do you have an import statement for the SQLBean class or its package defined
    in your class?




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center