Months ago I wrote data interface specs for a feed I was expecting a software vendor to send me. Not being a trusting person, I designed an XML DTD and shared a sample data file with them etc (this is not a post about the pros and cons of XML so don't go there please).

Anyway, the first test feed came from the vendor yesterday and the XML file was conspicuously missing. What they did provide us with was a neat little Java applet with all the data built right into the classes. It seems that this vendor does not want us to write programs against their data. Our contracts person says that they are in breach of contract and so I expect that there is about a 50/50 chance that we may get them to pony up the XML or some other kind of flat file.

So my question is, if I can't make the software vendor play nice, I want to decompile what must be a two-dimensional array of data out of their Java class files. Since the rest of my system is written in Perl, I am looking for guidance about how to do this in Perl.

Plus, the sheer irony of munging through Java class files in Perl is just too much to pass up.

~~~~~~~~~~~~~~~
I like chicken.

In reply to Java Decompilation in Perl by Stegalex

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.