Java Tutorials - Herong's Tutorial Notes
Dr. Herong Yang, Version 6.00

System Properties and Runtime Object Methods

This chapter provides tutorial notes and tutorial examples on system properties and the Runtime object. Topics include listing all system properties, setting your own properties, accessing the Runtime object, checking free memory, executing OS commands.

JVM and OS System Properties

System.setProperty() - Setting Your Own Properties

Runtime.getRuntime() - Getting the Runtime Object

freeMemory() - Getting JVM Free Memory Information

Calculating Memory Usage of an Array

exec() - Executing Operating System Commands

Dr. Herong Yang, updated in 2008
System Properties and Runtime Object Methods