Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #38304

Re: Need to modify a legacy closed app

From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: Need to modify a legacy closed app
Date 2018-05-30 21:19 -0400
Organization Aioe.org NNTP Server
Message-ID <peniiv$aje$1@gioia.aioe.org> (permalink)
References <v9ttgdld4tiodnldauf1eid79jgdnd61pl@4ax.com>

Show all headers | View raw


On 5/30/2018 3:38 PM, Michael Keith wrote:
> I am tasked with modifying a legacy app which consists of an .exe file
> and several hundred .jar files. Is is launched by starting the .exe,
> which then - somehow - initialises the whole darn thing. This presents
> the first difficulty, as I have no idea what the 'main' .jar file is.
> 
> The task at hand consists of adding one button (or a clickable image
> or some such) plus the action to be eventually performed to a certain
> pane - so all I need is the name (or probably the class hierarchy) of
> this particular pane.
> 
> I am hoping for a tool / class which, when hovering over a certain gui
> element knows (and can display) this hierarchy. I could then inject
> the code to start this class in some suitable constructor and be a lot
> farther.
> 
> If anyone here knows of a way to achieve what I am after this would be
> highly appreciated.
> 
> Oh, one more thing maybe: I am not a Java guy at all (knowing about
> code injection only because I read an article about it some years ago
> - and carelessly mentioned it to my boss when discussing our problem,
> which caused it to land right in my lap), so you might consider using
> "simple language" when answering. :)

Check if you have the source code and build scripts somewhere.

Yes => change code, rebuild, test and deploy.

No =>

1) Check if you have legal right to reverse engineer and modify code.
2) Get a Java decompiler and generate source code from the Java byte code.
3) change code, rebuild, test and deploy.

Arne

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Need to modify a legacy closed app Michael Keith <mjkeith@gmx.de> - 2018-05-30 21:38 +0200
  Re: Need to modify a legacy closed app Arne Vajhøj <arne@vajhoej.dk> - 2018-05-30 21:19 -0400
    Re: Need to modify a legacy closed app Michael Keith <mjkeith@gmx.de> - 2018-05-31 13:15 +0200
      Re: Need to modify a legacy closed app Martin Gregorie <martin@mydomain.invalid> - 2018-05-31 21:50 +0000
      Re: Need to modify a legacy closed app Arne Vajhøj <arne@vajhoej.dk> - 2018-05-31 20:32 -0400

csiph-web