JTWolfman
asked on
Import self-made packages
Im using JBuilder 9 and i'm trying to import some of my packages into my current .java files, but it says it cant find them even though when i type import, the menu appears and i can select the package. It is just some basic code, but it just ont grab those packages. Please tell me what im doing wrong.
Make sure you have the import xxx.yyy.zzz statement at the top of your code
It looks more like the classpath isn't including the directory where your .class files are (for your existing packages). If they're in a jar, you'll need to include the jar file itself, not just the directory that contains it.
ASKER
Ok, i got a package Files and a package Browsers, in a file inside of Browsers, i try and use a contructor in the Files package under the class setName.
I try and import using import Files.* to get all of them since i will use them all eventually, but it says "Package Files does not exist" even though it is there.
I try and import using import Files.* to get all of them since i will use them all eventually, but it says "Package Files does not exist" even though it is there.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Oops, what a big *DOH*. thanks man, you earn points do to a braing fart.
;-)
>>If this is the case, you need to import ???.Files.
Isn't this precisely what i said in the first place?
Isn't this precisely what i said in the first place?