Class not found ! error
I have this package
package fig08_28;
and these two classes:
ResultSetTableModel.java
DisplayQueryResults.java
What is strange is, that unpon compilation or execution of the second class, it returns a Class ResultSetTableModel Cant be Found.
It not a typing error or such thing. because in net Beans, this class is compiled correctly. but I dont want to execute it from netBeans.
i am using j2sdk1.4.2_05, and what mess my mind more, this compiler can compile similar cases correctly.
Code Listing:
// ResultSetTableModel.java
package fig08_28;
.....
public ResultSetTableModel( String driver, String url,
String query )throws SQLException, ClassNotFoundException
{....
// DisplayQueryResults
package fig08_28;
publicclass DisplayQueryResultsextends JFrame{
private ResultSetTableModel tableModel;// cant resolve symbol
...
public DisplayQueryResults()
{....
// create ResultSetTableModel and display database table
try{
tableModel =
new ResultSetTableModel( driver, url, query );// cant resolve symbol
......
i am using the following command for compiling
javac fig08_28/className.java
knowing that the first class is compiled correctly. do you know what might be the error?

