Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confusion in using javap -c

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12196
35
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50206
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 50206
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome




. . . but what makes you think I know more about it than you do ?
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. . . 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
Pie
Posts: 50206
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravi Pavan wrote:i even didn't know that there is a tool by name BCEL
But you do now
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic