Closed Thread Icon

Topic awaiting preservation: mapping a .jar file (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12901" title="Pages that link to Topic awaiting preservation: mapping  a .jar file (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: mapping  a .jar file <span class="small">(Page 1 of 1)</span>\

 
splodge
Nervous Wreck (II) Inmate

From: right about >x<there
Insane since: Aug 2003

posted posted 09-20-2003 03:28

I have a blah blah.jar file that is linked to a gif image on an applet. As I have now changed some of the image I want to re map the hotspots from within the .jar file. Since everything is now out of place.

1. Is there a program that allows me to open the .jar file in a readable format than what it is already in. So I can re map the locations?
and
2. Where would I get this program from?
Thanks very much


splodge
Nervous Wreck (II) Inmate

From: right about >x<there
Insane since: Aug 2003

posted posted 09-20-2003 05:25

I should have added that I have tried the DJ Decompiler and a few others but they wont read the .jar file ..only .class files. Also when I open the file in notebook it is more akin to ascii if that makes any sence to anyone. What i mean by this is its different than how the script is in a .class file.??
Thanks again

Rhino
Bipolar (III) Inmate

From: New Jersey, USA
Insane since: Jul 2003

posted posted 09-20-2003 21:25

It can be a very difficult process to decompile any files if the code has been "Obfuscated" when it was compiled. If it has been obfuscated most compilers will not get fairly close to decompiling it.

Veneficuz
Paranoid (IV) Inmate

From: A graveyard of dreams
Insane since: Mar 2001

posted posted 09-20-2003 23:14

This JarBrowser seem to be what you're looking for. Incredible what one can find when one uses Google. You should try it some time...

_________________________
"There are 10 kinds of people; those who know binary, those who don't and those who start counting at zero"
- the Golden Ratio -

[This message has been edited by Veneficuz (edited 09-20-2003).]

splodge
Nervous Wreck (II) Inmate

From: right about >x<there
Insane since: Aug 2003

posted posted 09-21-2003 00:21

Thanks for the reply Rhino.
And Veneficuz, being a smartass wont always supply soltions to problems when people arent in the know and are asking for help.
So far I have 9 decompilers which i can open up the jar file into its seperate class files which I found on line before a reply was offered.

Main problem i know have is if a class file is opened altered in ANY way and saved the applet wont work all I get is a gray screen. And no error message.
EVEN IF i do the following:

Open the class file in a decompiler or a text editor .
Type in a single letter at the very bottom of the page away from any script then remove that letter and save
when i try to use the applet it wont work and yet there is no visible change to the script i.e all that was added is removed back to as it was.

So how come it does this and what can be done to make it work after altering the file? Seems that by making changes in the file and then reverting back to as was but using save before closing changes something inside.

Thanks again

Veneficuz
Paranoid (IV) Inmate

From: A graveyard of dreams
Insane since: Mar 2001

posted posted 09-21-2003 01:07

Sorry for that, just seemed from your post that you hadn't looked that hard considering the answer to both of your questions were at the first search page...

But anyhow, on to your new question. After you've decompiled the jar and made changes to it I'm pretty sure you have to recompile it using the standard procedure. So first you decompile the files and make the changes, then compile them again to make a new jar file containing the new changes... Hope that helps

_________________________
"There are 10 kinds of people; those who know binary, those who don't and those who start counting at zero"
- the Golden Ratio -

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 09-23-2003 11:38

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

« BackwardsOnwards »

Show Forum Drop Down Menu