DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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?




Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links