This errors is just because your class path is not configured correctly.
This code means PbandPackage must be at same level as Test Class. Means : -Test.class -PbandPackage-Tools.class
or you can include class files in Project Class path : Project Properties -> Build Path -> Libraries -> Add Class Folder and Select Folder where you PbandPackage contains class file.
and now run your Tools.java file.
But in case of Eclipse its very easy to create a Java Project. 1. Create a new Java Project 2. Create src folder for your project. 3. Create packages. 4. Import required classes by Pressing Ctrl + O 5. run your programs.
Joined: Dec 18, 2002
Originally posted by Prosenjit Banerjee:
I have added the following build path to my project in eclipse: c:\abcd\efgh
But even doing so I cannot run the Test.java from eclipse.
So, as I told, I added the path in the Build path. Still it does not run. Please tell me where am I going wrong.
subject: Command line runs it, Eclipse does not :-(