There are lots of Java byte code engineering libraries. You can use one of them. That would be suggested approach instead of you parsing or invoking a separate native process to reverse engineer the .class file.