File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes how to output -verbose:class info to a file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to output -verbose:class info to a file?" Watch "how to output -verbose:class info to a file?" New topic
Author

how to output -verbose:class info to a file?

jing hu
Ranch Hand

Joined: Jun 30, 2009
Posts: 63
hi,
Now I run a java application. I want to record loaded classes information. yeah, I can use java -verbose:class Test.
Now I want to know how to output the loaded classes to a file not in the command line windows.

Thanks .
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19725
    
  20

Use the shell's file redirection mechanism:
Of course this will redirect all output to the file, but at least you've captured it.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
jing hu
Ranch Hand

Joined: Jun 30, 2009
Posts: 63
yeah. Thanks, It is right.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to output -verbose:class info to a file?