• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to rebuild package structure  RSS feed

 
Lynn Oliver
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a java app that I need to change, but there is no source available. I've decompiled it to create source files, and I've figured out what needs to change in the source. I've created a directory tree that matches the package statement at the beginning of each source file, and I've moved them to the appropriate folder.

I don't know what to do with non-source files, such as "org.jdesktop.application.Application, which the decompiler placed in a folder named "services." Also there are "MANIFEST.MF" files in each of the two trees.

Is it possible to make this compilable, or is this likely a waste of time? Any suggestions as to where to place files?


 
Campbell Ritchie
Marshal
Posts: 56576
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only a few things I can suggest; other people will doubtless have better ideas.

See whether there is an Application class available on www.jdesktop.org. That may be accompanied by instructions for its use. Try copying the org.jdesktop.application files into a folder called org/jdesktop/application if that doesn't work.
Go through the manifest files, and you should be able to work out which class has the main method in. Check that there is no condition of use prohibiting reverse engineering.

I think this question is too difficult for "beginning", so I shall move it . . .

. . . and welcome to the Ranch
 
Lynn Oliver
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:See whether there is an Application class available on www.jdesktop.org. . . . and welcome to the Ranch

It's no longer available as far as I can tell.

Thanks for the welcome!
 
Campbell Ritchie
Marshal
Posts: 56576
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lynn Oliver wrote: . . . It's no longer available as far as I can tell.
So that's my idea gone for a Burton!
Thanks for the welcome!
You're welcome
 
Lynn Oliver
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I'll just rewrite it from scratch. I hate maintaining programs without source...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!