This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am aware of the stuff you are talking about. I just wanted to explore these apis. The problem is that when i use, say, the above package, the Compiler complains that it cant find the package ... I included "tools.jar" while compiling my sample app but didnt work ...
How did you find out about the package "sun.jvmstat"? Maybe it doesn't exist (anymore) in the version of Java that you're using. (Sun is free to change or remove the undocumented Sun packages in newer versions of Java.)
Joined: Aug 24, 2005
Originally posted by Jesper Young: How did you find out about the package "sun.jvmstat"? Maybe it doesn't exist (anymore) in the version of Java that you're using. (Sun is free to change or remove the undocumented Sun packages in newer versions of Java.)
So what version of Java are you using on what platform? The page you gave the link to refers to Java 1.5.
I have Sun Java 1.4.2_12, 1.5.0_09 and 1.6.0 on my computer here (Windows XP) and in tools.jar of version 1.5.0_09 and 1.6.0 there is a package sun.jvmstat which has two subpackages (sun.jvmstat.monitor and sun.jvmstat.perfdata). It's missing in 1.4.2_12.
Note that you can use jar tvf tools.jar to get a list of files that are present in tools.jar. Also, you can view the contents of JAR files with 7-Zip or WinZip.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com