ow can i get a try catch information

Discussions

General J2EE: ow can i get a try catch information

  1. ow can i get a try catch information (2 messages)

    Hi,
         How can i find the try/catch block information from a .class file.I think i can use some reflection class but i am not sure which class i can use. can someone guide me through this?.

    Thanks in advance.


    Ashok.
  2. I think you can use BCEL library by apache,
     http://jakarta.apache.org/bcel/. Reflection would not be of much help as you can only query till method level, and not at the JVM instructions level. Hope it helps.
    Thanks,
    Prasun
  3. Use java decompiling tools to get the java files back.There are lot of free java decompilers available freely on net for downloads