Hi all
I use the dynaTrace 6.1 Client on Windows. There I could use JD-GUI 3.x to decompile Java-classes. I only had to define the path to the jd-gui exe under the External Tools in Client preferences. This no longer works with jd-gui 1.0. The jd-gui window is opened but without a class to decompile.
Any ideas how to use jd-gui 1.0 in the dynaTrace client?
Regards
Matthias
Answer by Matthias D. ·
Hi Harald
Thanks for your help. Would you say that there's no need to use jd-gui with dynatrace 6.1 as the included decompiler is now equql or better than jd-gui?
Regards
Matthias
Answer by Harald B. ·
Hi,
It seems feasible to call a batch file that performs a rename instead of calling jd-gui directly
So a call to
D:\tools\jd-gui\callJDGUI.bat C:\dynatrace\client\cache\out\org.apache.derby.impl.jdbc.EmbedStatement5217584501740024027.class
will be transformed to
D:\tools\jd-gui\jd-gui.exe C:\dynatrace\client\cache\out\org.apache.derby.impl.jdbc.EmbedStatement.class
As standard rename command of windows is limited, you may have to use a external tool to accomplish that. But it may have some limitations, as numbers may be a valid part of the classname. In such cases jd-gui will not open the file.
regards
Harry
Answer by Harald B. ·
Hi,
dynaTrace just calls an external decompiler with the executable and passing a temporary filename as parameter. Actually with jd-gui 1.x the command line does not accept a temporary file anymore. It must have exactly the same name as the encapsulated class. I will see if there is a workaround with using a batch file to call jd-gui performing a rename.
Please do consider that with 6.1 we updated the standard decompiler to a actual version of procyon, so the default output is much better than with 6.0
regards
Harry
Answer by Andreas G. ·
Hi. I just double checked this with engineering. Seems like this is a bug on our side. We therefore recommend to stay on 0.3 until that will be fixed in a future dynatrace version. FYI - the internal bug number is JLT-127451 - in case you want to use this as a reference
JANUARY 15, 3:00 PM GMT / 10:00 AM ET