Are both .java files in the same directory? How are you compiling these files? It could be that you don't have your classpath set up correctly. How are you compiling both of the files? you should probably be in the same directory as the two files when you type javac, then you can type javac -classpath ./ def.java and the compiler will be able to find the referenced abc.java file.
okucuen Welcome to the Java Ranch, we hope you’ll enjoy visiting as a regular however, your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy. Thanks again and we hope to see you around the ranch!!
Joined: Feb 09, 2002
Rob , it's very nice from you?You're right. i had a problem whith my environnement variable. Classpath and path !!I changed it. Dave , i thanks you so, As you can see , i have my name changed