0

I am fairly new to Java so please excuse my ignorance.

I have some already-written .java source code files and it's safe to assume that these are written without errors.

They are in nested folders where the top level classes are part of a package p1. Classes in the subsequent two levels are part of subpackages p1.p2 and p1.p2.p3. However all classes appear to have inter-dependencies between levels and in both directions.

Trying to compile classes one by one obviously doesn't work, as I get "symbol not found" (referring to uncompiled dependent classes). I have tried to 'build' the entire package in one go in IntelliJ IDEA, yet another error is thrown regarding an imported package that 'doesn't exist'.

What I would like to know is, is there a standard or simple way to compile a package/subpackages like this, perhaps via the command line?

Thank you.

0 Answers0