i have some problem importing packages ......please help me
i have crearted 3 class -class one ,class two and class three(has main method and have created objects for class one and two),now to excute my program i created a package for both class one and class three (in same source file)and try to import that in class three.......but it gives a error messg -package not present in import......
how should i excute my program.......is it got to do with my path variable which i have set to bin of my jdk
posted 11 years ago
Okay...to make things clear, let me write what I would do if I were you,
- If we are on windows platform having following file/dir structure,
c:\java\programs> -packageDir (its a directory same as package name 'packageDir' in classes) |__one.java |__two.java |__three.java