B
ballpointpenthief
I haven't managed to find and information on this so far...
There exists a file for 'mypackage.Hello' that a user wants to load as
a Class in an application.
A user selects the Hello.class file from a JFileChooser.
The Hello.class file is sent to subclass of SecureClassLoader.
The ClassLoader needs the fully-qualified classname (mypackage.Hello)
to define the class (along with the bytecode, and the CodeSource),
so....
how can I find out that Hello is in 'mypackage' if all I have is the
File?
Thanks!
Matt
There exists a file for 'mypackage.Hello' that a user wants to load as
a Class in an application.
A user selects the Hello.class file from a JFileChooser.
The Hello.class file is sent to subclass of SecureClassLoader.
The ClassLoader needs the fully-qualified classname (mypackage.Hello)
to define the class (along with the bytecode, and the CodeSource),
so....
how can I find out that Hello is in 'mypackage' if all I have is the
File?
Thanks!
Matt