aspose file tools*
The moose likes Beginning Java and the fly likes Confusion in using javap -c Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Confusion in using javap -c " Watch "Confusion in using javap -c " New topic
Author

Confusion in using javap -c

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234



I have used javap -c command for the above class , but i did not understand the generated code from the byte code. Can anybody share your tips in understanding this.


Save India From Corruption - Anna Hazare.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11494
    
  16

Ravi,

You are much more likely to get answers to your question, if you do a few things to make it as easy as possible for someone to help you.

For example, you could have posted exactly what you got from your javap -c command.

Further, you should carefully explain what part you don't understand. Do you not understand what the command is supposed to do? do you not understand one specific line of the output? do you not understand ANY of the output?

few folks are going to take the time to copy your code, save it, compile it, then de-compile it, just to see if they can try to help.

So my suggesting is to simply make life as easy as possible for the folks who may want to help you.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40027
    
  28
That is by no means easy to understand. It is a bit like reading assembly language. There are a few resources: try BCEL. Look for the manual.
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

rosenberger , i too agree , i was a bit lazy on this question .


Campbell , thanks for suggesting a tool . I am working on this and ask you some doubts regarding the usage of this one.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40027
    
  28
You're welcome




. . . but what makes you think I know more about it than you do ?
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

. . . but what makes you think I know more about it than you do ?


i even didn't know that there is a tool by name BCEL
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40027
    
  28
Ravi Pavan wrote:i even didn't know that there is a tool by name BCEL
But you do now
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Confusion in using javap -c