refer to package in other module

Answered

I created several modules in my project called mason-idea.  Now I want to use in module called rabbits_and_grass a package called util  from a module called util.  I did enter module util among the dependencies of module rabbits_and_grass.  But still, the IntelliJ builder does not recognize the package.  How am I supposed to refer to package util?

0
2 comments

Make sure module dependencies are configured properly: https://www.jetbrains.com/help/idea/creating-and-managing-modules.html#working-with-module-dependencies.

If the issue remains, please provide a sample project illustrating the problem and the exact steps to reproduce.

0
Avatar
Permanently deleted user

Thanks, eventually I figured it out.  One should not write

import util;

But still, if you can refer to a class Bla in util as util.Bla then it can be used.

 

 

 

0

Please sign in to leave a comment.