Replacing java class?
问题 I'm working on a sandbox feature for my java antivirus, and I've come into a question: Does the specified package on a class matter for compilation? Example: I'm running a program that wants to use Runtime.getRuntime().exec() , when the classloader attempts to load that to run a method, does it check the package qualified in the file, if they exist? I would prefer not to try and change files in the JVM, but to simply load ones from a different package. I can accomplish the loading and such,