I am an Ubuntu user, I have a lot of .class files in which ground truth information about a dataset I'm using is stored. I want to access this information (not modify it) and export it to .csv files to use it more easily.
I tried many methods to decompile and access the content of those .class files:
javap -c
Error: error while reading constant pool for synthPlate027.class: unexpected tag at #1: 51
Install and open the file via JD-GUI. JD-GUI doesn't react to the files, it doesn't open them but doesn't show any error message.
I tried ALL the different java decompilers from the online decompiler http://www.javadecompilers.com/, all failed and showed a different error message
I finally used http://www.decompiler.com/, and it happened to work fine! This proves that the data isn't corrupted.
Output from http://www.decompiler.com/ (which is coherent with the data expected) :
352, 608, 1
96, 224, 1
160, 608, 1
96, 544, 1
96, 160, 1
160, 96, 1
160, 288, 1
224, 160, 1
96, 416, 1
288, 608, 1
32, 288, 1
480, 352, 1
32, 96, 1
288, 224, 3
96, 480, 1
How is that possible? And how can I access the data of those files (>1000 of them) in an efficient and automated way?