java - Different package import error -
i have java project has 2 packages 'a' , 'b'. class in 'a' depends on class in 'b', compiled class in 'b' (using javac classname.java) when try compile class in 'a' package 'b' isn't recognized. explicitly import using line this:
import b.*;
i read online full package name given, , that's think i'm doing in import statement given fact both packages directly under src folder.
would have idea on how fix problem ? in advance
what may doing compiling package folder itself. if so, need exit directory instead inside source directory, , compile following command:
javac a/classina.java
where "classina" name of class in "a" package.
Comments
Post a Comment