There is a java file in which there are some dependency bans. But now I do not have these cans, and I have to compile it into a .class file.
Can this be done?
UPDATE
Thank you for your responses.
At first I thought that we could create some stubs for missing dependencies, which is easy but boring. Since we can create stubs without gaps to make the compiler happy, why can't we make the tool automatically? The tool does not need to create stubs, but it reads a java file, collects information, and then creates .class files.
But if the "import" in the java file contains "*", this will be a problem:
import aaa.* import bbb.* public class Hello { World world; }
We do not know if the Mir class is under the aaa or bbb package. If we are not familiar with the missing dependencies, we donβt even know how to create a stub for the World class.
But if the import instructions are clear, I think it's possible, but maybe no one will write such a tool
Freewind
source share