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?

[2020 byte] By [tleis1a] at [2007-10-1 5:22:12]
# 1

Strange things happening !:

I copied the two files into a package that i am using for developing another application, and it worked fine!!!!!!!!!!!

moved from ... desktop/ch08/fig08_28/ *.*

moved into ......desktop/senior/*.*

I deleted the .class files and renamed the fig08_28 into sen, but the same problem.

Please i am having a real pain in my head because of this, can anyone explain me the reasons?

tleis1a at 2007-7-9 13:16:29 > top of Java-index,Administration Tools,Sun Connection...
# 2

Oooooooooooooooooh

What a relaxation,

I created an emply folder inside the package, and it worked.

I understood after some googling, that the reason was (a bug) that were fixed.

In JDK1.3 and before, this was possible but with JDK1.4 and more, you can not call from a main package.

tleis1a at 2007-7-9 13:16:29 > top of Java-index,Administration Tools,Sun Connection...