Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q4055 I have two .java files, in one I create a new instance of the class in the second. However, when I compile the source I get the following error: "Class sql not found in type declaration", how do I get round this?

irt.org | Knowledge Base | Java | Q4055 [ previous next ]

Q4055 I have two .java files, in one I create a new instance of the class in the second. However, when I compile the source I get the following error: "Class sql not found in type declaration", how do I get round this?

There is one thing you can check that is package protection, if you have defined your classes in some package then "import sql" statement the compiler won't get that class, you have to specify the complete path. You also need to import the SQL package.

Feedback on 'Q4055 I have two .java files, in one I create a new instance of the class in the second. However, when I compile the source I get the following error: "Class sql not found in type declaration", how do I get round this?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.