Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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?

You are here: irt.org | FAQ | Java | Q4055 [ previous next ]

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?'

©2018 Martin Webb