How to decompile jhipster based war file

694 views Asked by At

Hi I have tried to decompile the classes of a jhipster generated war file (non-obfuscated), but it's not showing decompiled version of the class file. I tried with normal jar (gson) and I can able to see the java code of that class.

enter image description here

It is showing null and i am not able to see the actual code.

1

There are 1 answers

0
Julien Dubois On

JHipster is Open Source, and the code you are trying to read comes from its library at jhipster/jhipster - I think it is easier to read it there than trying to decompile the class file.

If you use Maven and/or a good IDE, you should also be able to download the source files, or at least attach them so they can be used instead of decompiling the .class file. Those source files are available here on Maven Central.

If you really want to decompile those files for audit purposes: I'm the one compiling them and doing those releases, and I don't do anything specific to obfuscate those. They are simply compiled using mvn compile with the latest JDK release on Mac OS X at the time of the release. So I guess your decompiler is pretty bad, you should try another one: the one provided by default in Intellij IDEA usually does a good job, you could try it.