|
-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks