-
Oct 26, 2009, 03:27 PM
#1
How do i get system physical memory size using java
i would like to get the systemphysical memory and virtual used amount and free space available.
how i am having some problem using the com.sum.... class.
it is saying am retricted and i can not access this call directly.
these are my codes
java.lang.management.OperatingSystemMXBean mxbean = java.lang.management.ManagementFactory.getOperatin gSystemMXBean();
com.sun.management.OperatingSystemMXBean sunmxbean = (com.sun.management.OperatingSystemMXBean) mxbean;
the code in red is where am getting the error.
i
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules