You might consider one of the pure java decompilers, such as BCEL http://jakarta.apache.org/bcel/manual.html or jode http://sourceforge.net/projects/jode/, or ClassFile http://home.earthlink.net/~shvets/. These could even be called from the BeanShell.
> -----Original Message----- > From: James Sinnamon [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 08, 2002 8:02 PM > To: [EMAIL PROTECTED]; WATSON Matt; [EMAIL PROTECTED] > Subject: Re: Cleaning up import statements > > > Matt, > > On Tue, 9 Apr 2002 10:50, WATSON Matt wrote: > > Not jde related, but I wrote a shell script to wrap jad which would > > decompile your class files, extract all the import > statements it makes and > > replace the imports in your source with the ones jad comes > up with. Using > > the right jad options, this allows you to have a full list > of all the > > classes you are using with no "import XXX.*;"s - I > personally hate them. > > If anyone's interested, I'll dig it out from home and post it here. > > > > Could I see your shell script? Either directly or > through the jde list. BTW, where do I find jad? Can't get to > http://kpdus.tripod.com/jad.html at the moment. > > Thank you. > > regards, > > James >