Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javap and output

 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I'd like to be able to direct the output of the "javap -c SomeClass" command to a location other than my DOS prompt. My reason is that I'd like to have a look at everything that is output, but I can't scroll up past a certain point in the DOS prompt Window and so I can't see everything that is output.
From Sun's article "javap - The Java Class File Disassembler" I gather that, "javap prints its output to stdout" - but what does that mean to me? Do I have any control over this "stdout"?
Thank You.
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could always try redirecting the output. This works on my console on NT:
javap -c SomeClass > test.txt

This will redirect the contents of the output to a new file named "test.txt"
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's it.
Thanks Rob.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic