Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

finding a list of classes in applet jar for an applet

  Asked By: David    Date: Oct 23    Category: Java    Views: 1199

I need to find out a list of classes available (in a particular package)
for use as plugins.
Running as an application I can traverse the classpath and evaluate the
class files, which is clumsy but effective.
However running as an applet, I can't seem to get at anything that gives
me a list of classes available to the classloader.
I would have thought Package would have some means of return an array of
Class, but no joy there..
Currently I am using a list of plugins in a properties file and
instantiating them from there,
but would rather just be able to add the plugins to the appropriate
package and find them at runtime..
Does anyone have any idea how I could go about getting a list of classes
in a package ?

The application is a fractal generator, which you can play with at
http://qlt.net.au/canvas if you like.
All feedback gratefully received ......



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on finding a list of classes in applet jar for an applet Or get search suggestion and latest updates.