Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

package does not match directory error 1

Status
Not open for further replies.

tomhughes

Vendor
Aug 8, 2001
233
US
I am using JBuilder 7.0, and am getting the error

package _____ does not match directory ______

I don't know what I am doing wrong, but I get the same error for every java file I have.
 
Hi tomhughes,

when using packages (like for example "package test;"), you need to have a directory named like the package in your src path. All the package files must be in this special directory.

example:

you have two java src files that use package test, test1.java and test2.java. Then these two files should lay in ...\project_name\src\test\
 
I am having this same problem with the jss2 package. The way the computers here are set up, I cannot even find the jss2 package file, as we are not allowed to use many of the features on our computers.

Could you please tell me where the jss2 package is supposed to be, with a rough estimate? I may suspect that someone may have deleted it, but I hgope not, I need it for my project.
 
Another way to refer to a different package is to add the /src directory of that package to the Source Path of the project Properties.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top