JavaLanguage Section Index | Page 35
How do I change what standard output or standard error goes to so it can go somewhere other than the console?
The System class allows you to reassign where these streams go to with either the static setOut(PrintStream) method or the setErr(PrintStream) method.
Instructions and a complete example are available at http://members.tripod.com/%7Ehkseth/nt.html.
To use the java -jar command, the manifest file for your JAR file needs to include the following line, specifying which class to execute its main: Main-Class: classname You would need to repla...more
Exceptions are essential to writing robust code and, fortunately, are extremely cheap until you actually throw an exception; the try costs you very little (usually the cost of marking the stack po...more
Sun provides information on Java's Y2K readiness at http://www.sun.com/y2000/jumppage-temp/jdk.html. As long as you are using a compliant version, you are okay.more
The 1.1 java runtime command takes a -nojit option to disable the JIT compiler. The Java 2 platform java runtime command takes requires -Djava.compiler=NONE instead.more