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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -