Hello, I have a main app which uses two packages: CustomerDataClass and AccountManipulationClass. Both are imported in the main file TabbedPaneApp. There are no problems there. However, AccountManipulationClass also uses CustomerDataClass and imports it. The folder structure is TabbedPaneApp.java in root. Below this is the BankUtilities containing CustomerDataClass and AccountManipulationClass folders with the appropriate packages. When I use either "import BankUtilities.CustomerDataClass.*;" or "import CustomerDataClass"; I get a "package CustomerDataClass does not exist". Any ideas? Thanks.
is telling the compiler to look for the package structure /BankUtilities/CustomerDataClass/* (Note that this will not necewssarily be true in Java 1.5, but it still will not have the effect you want; the above will import all static members of the CustomerDataClass in Java 1.5, but not the class itself) BTW, it is general practice to have package names be entirely lowercase; e.g., "bankutilities" instead of "BankUtilities" [ September 14, 2003: Message edited by: Joel McNary ]
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Joined: Sep 13, 2003
I really want this solution to work - but it doesn't look like it. I change the line to BankUtilities.CustomerDataClass and I get a "cannot resolve symbol" in reference to the CustomerDataClass. Any ideas?