This content has been marked as final. Show 3 replies
Did you try to import Test in class getTest?
Just remove the first line(package) in both the source files and try compiling it.Let me know the result....
i have included the directory path in theFor example, if you have
still its not compiling .....
c:\myjava\packone\Text.classthen you need to have c:\myjava in the Classpath, NOT c:\myjava\packone.
Oh, and make sure you have a Test.class file. It looks like you do not have any code in Test. I think javac will not produce a class file if there isn't anything to compile.