Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Some Methods in java.lang.Runtime Have Compatibility Issues

Visual Studio 2005

The following methods have compatibility issues with Visual J++ 6.0:

  • java.lang.Runtime.freeMemory

    Visual J# returns the number of bytes of available free memory, whereas Visual J++ 6.0 returns the number of kilobytes of available free memory. Visual J# behavior is in accordance with Java Class Libraries Specifications.

  • java.lang.Runtime.totalMemory

    Visual J# returns the number of bytes of available total memory, where as Visual J++ 6.0 returns the number of kilobytes of available total memory. Visual J# behavior is in accordance with Java Class Libraries Specifications.

  • java.lang.Runtime.load

The following methods are not supported in Visual J#:

  • java.lang.Runtime.traceInstructions

  • java.lang.Runtime.traceMethodCalls

These methods throw com.ms.vjsharp.MethodNotSupportedException in Visual J#.

Community Additions

ADD
Show:
© 2015 Microsoft