Thousands of examples at your fingertips!
All classes, methods fields etc. are linked to the API documentation.
All members are listed by frequency of use or alphabetically (see left pane).
Links to examples and utility functions/classes are shown below
Class java.lang.Runtime
[api documentation] [ main menu] Search

Links to examples (only one line shown below for each example):
[add your own example]

1 long total = Runtime.getRuntime().totalMemory();
2 nbProcs=Runtime.getRuntime().availableProcessors();
3 Runtime rt = Runtime.getRuntime();
4 Runtime.getRuntime().exec(new String[] { (String) browser, url } );
5 Runtime.getRuntime().runFinalization();
6 Runtime r = Runtime.getRuntime();
7 Runtime rt = Runtime.getRuntime();
8 Runtime runtime = Runtime.getRuntime();
9 System.out.println("free, total memory at start = "+Runtime.getRuntime().freeMemory()
10 if( Runtime.getRuntime().freeMemory() < 150000 ){
11 freeMemory = Runtime.getRuntime().freeMemory();
12 long freeMem = Runtime.getRuntime().freeMemory();
13 Runtime r = Runtime.getRuntime();
14 Process process = Runtime.getRuntime().exec(new String[] { "cmd.exe", "/c", "start", "\"\"", '"' + path + '"' });
15 Runtime myRT = Runtime.getRuntime();
16 (new Long(Runtime.getRuntime().freeMemory()), true));
17 long before = Runtime.getRuntime().freeMemory();
18 Runtime r = Runtime.getRuntime();
19 Runtime rt = Runtime.getRuntime();
20 Runtime r = Runtime.getRuntime ();

Links to utility classes and functions:

1 org.cougaar.lib.util.UTILRuntimeException
2 org.eclipse.core.internal.utils.WrappedRuntimeException
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.