Issues Importing Class File Into Project

I've been having issues with importing a class file into an existing project or even a new one. A professor of mine requires usage of this class file and I've had to result to using JGrasp or simple command prompt compiling with a text editor to complete assignments. I've added the path of the class file in the dependencies, I've followed the information here and I am still unable to iimport the class file by following the basic syntax,  which in this instance is

import codelibraries.chp10.Course;

What can I do to fix this issue?

Thanks for your help!

4 comments
Comment actions Permalink

You should add a path to the default package, not to the file.

In your case it would be c:/some/path/codelibraries/chp10 and this directory should contain Course.class file.

0
Comment actions Permalink

Would you mnid directing me on where to add the path?

0
Comment actions Permalink

Thanks! I got it now.

0

Please sign in to leave a comment.