I was looking around and I found a few answers that use ClassLoader.findLoadedClass(String className)
but they all require overriding the permissions with setAccessible(boolean flag)
, and that just seems like you shouldn't be doing that. (What's the point of permissions anyway if you can just change them in runtime).
is there any other way to see whether or not a classes is loaded? This seems like it would be a pretty basic thing to check.