aspose file tools*
The moose likes Java in General and the fly likes Decode the .class file without using any software Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Decode the .class file without using any software " Watch "Decode the .class file without using any software " New topic
Author

Decode the .class file without using any software

reethu singh
Greenhorn

Joined: Feb 13, 2014
Posts: 3
hi i wanted to decode the .class file to know what methods that class file contains/to view that class file but without using any software i need to do coding in java can anyone help me?
Surendra Kumar
Ranch Hand

Joined: Jul 04, 2006
Posts: 229
You can use Reflection API.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7081
    
  16

reethu singh wrote:but without using any software i need to do coding in java...

That statement is contradictory. Java is software, so you can't do it without using software of some kind.

Reflection, as reethu said, is one possibility; but the question you should probably be asking yourself is: "why do I need to do this?". If it's for a school exercise, then fine; if you simply want to crack someone else's code in order to plagiarize it, then it isn't.

I have never, in 12 years of using Java, needed to do what you want, and Reflection is fiddly, error-prone, arcane and SLOW; so I'd think long and hard before you go down that road.

Winston

Isn't it funny how there's always time and money enough to do it WRONG?
Artlicles by Winston can be found here
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39575
    
  27
The javap tool that comes with the JDK will show you what methods are available. Libraries like asm, jclasslib and javassist could also be useful.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Decode the .class file without using any software
 
Similar Threads
Need coding help
class file decoder needed
Decompiling Java Class Files
Decode Password from .htaccess file?
Retrieve cookie values