Hi all, I was wondering if any of you could point me in the right direction. I have a class file that I would like to get the source code from. How do I go about this? I know there is no way built in to the JDK, but have heard that it is an easy thing to do. Any help appreciated. Bill
If you are trying to decompile a package of classes that you paid money for, and want to use the source to write your own stuff and resell it, then perhaps this is not such a good idea.
But if you are just satisfying curiosity, then go to www.download.com and in the search box at the top right, search for 'java decompiler'
They have downloads for mp3 piracy software, why not java class files, right?
Morality is for the rich?
Joined: Sep 19, 2000
Thanks, Mike. I am trying to debug something we purchased from a vendor. It's legit, I promise. For anyone who might benefit, I found DJ Java Decompiler at download.com. Enter the keywords as Mike suggested and you'll find it. It is quick and easy to use. Do not use it for evil. Bill
I'm curious, can changes in file associations cause an error? After installing DJ_Decompiler, my .class files changed from using an MSNotePad icon to using a different icon. My .java files did not change icons, but I cannot open either of them now, without getting a "Program Not Found" error telling me that I need DJ's .exe file to open a .class or .java file. I'm using WIN98se. Anyone encounter this before? SteveII
u can download mocha.zip and give the path to this zip file in your classpath then run the command java mocha.Decompiler yourclass.class this will generate a yourclass.mocha file that is nothing but your java file other way around is open your class file in some java IDE like JBuilder , VisualCafe , VisualAge and you can see the code
To fix that, from any explorer window, select the view menu, and then folder options. Go over the the "file types" tab, and highlight the type of file you're looking for. Press the edit button, and another window pops up. Highlight "Open" under Actions, and press edit.. . That will then allow you to select what application is set to open that paticular file type.
On obfuscation now. Does anyone know of an index of java methods that are susceptible to being mucked up by the popular obfuscators? By mucked up I mean prevented from working as Sun intended during runtime. Cheers Alan