Jar -t doesn't work? .. and how to find a package?

I've got JDK 1.4.1 installed on RedHat 8.0, and jar -t doesn't seem to work at all. Anyone else experienced this? (it just hangs).
I'm using's Sun's jar - but I get the same result if I try the jar command that follows linux (jar (fastjar) 0.92-gcc)
Also, when I get the message e.g. "package javax.servlet.http" does not exist - what's a fast way to figgure out which .jar from the XML Summer Pack I need to include?? I could start browsing the docs, but that's tedious work. I want to be able to say; "ah, that means that blabla.jar is missing" and include it .. that shouldn't be too much to ask ..
So I wanted to create a shell script that recursively scanned through all the jars and found the jar with the named package .. however, my .sh skillz are not that elite.
Feel free to answer with shell code =)

I call this script 'findclass'
#!/usr/bin/perl -w
$pat = shift;
foreach $jar (@ARGV) {
  open(JAR, "jar tvf $jar|");
  while(<JAR>) {
    print "$jar: $_" if /$pat/;
  close JAR;
}Cheers, Neil

Similar Messages

Maybe you are looking for

  • Tree view in applet

    I want to show the file system in my hard-disk in the form of a tree, in a JSP page. Iam calling an applet in that jsp page. This applet in turn calls a java program which prepares a JTree object. But am getting an exception while calling this applet

  • Adobe form as PDF string in Webservice importing parameter

    Hello Experts, Can you please clarify the below issue. I have created a webdynpro. I have placed an interactive form on one of it's view. And kept one Submit button(Execute type) on the form to trigger one webservice. This webservice has the importin

  • VAT code change in NL on 1-JAN-2001

    The highest VAT code changes from 18 to 19% in the Netherlands on the first of January. We have put all you need to do in a short checklist in Dutch below. BTW hoog wordt 19% in 2001 CONSEQUENTIES IN ORACLE FINANCIALS Per 1 januari 2001 aanstaande ve

  • Using Bar Code with RF devices in ECC 6.0

    Dear all, We have recently installed SAP ECC 6.0 in our company and we want use RF devices for reading barcodes (not RFID). According to SAP documentation this is what they say: " ... Currently, two device types are supported: - GUI devices (with gra

  • Ibooks do not open my pdf anymore

    i downloaded some pdf from my unis webside and opened them in ibooks. But since 3 days i can not open them, only the books. I had no update or any change on the ipad. When i tip on the pdf it is only grey. Please help.