Last updated by Roedy Green ©1996-1999 Canadian Mind Products.
java.exe has a number of options.
Option | effect |
---|---|
-help | print out info on options |
-version | print out the build version. |
-v -verbose | turn on verbose mode. |
-debug | enable remote JAVA debugging. |
-noasyncgc | don't allow asynchronous garbage collection. |
-verbosegc | print a message when garbage collection occurs. |
-noclassgc | disable class garbage collection. |
-ss 64000 | set the maximum native stack size for any thread, in bytes. |
-oss 300000 | set the maximum Java stack size for any thread, in bytes. |
-ms 4000000 | set the initial Java heap size, in bytes. |
-mx 20000000 | set the maximum Java heap size, in bytes. |
-cp .;C:\java\classes.zip ... | list directories in which to look for classes. It is sometimes spelled out longhand -classpath. |
-prof:java.prof | output profiling data to .\java.prof. |
-verify | verify all classes when read in. |
-verifyremote | verify classes read in over the network. |
-noverify | do not verify any class. |
I lied to you. Life is actually a little more complicated. If you feel ready for the whole truth, here is how it really works:
-g | ? |
-o | ? |
-debug | add information to class files to aid in debugging. |
-depend | ? |
-nowarn | suppress warning messages. |
-verbose | long version of error messages. |
-classpath /mydir:myCollection.jar:/jdk/classes.zip | overriding CLASSPATH, colon separated. |
-nowrite | don't actually generate code, just check the syntax. |
-deprecation | warn of any use of any deprecated methods. |
-d targetDir | Place the output class files in this directory rather than the usual same directory as source. |
-J runtimeflag |
/** * @(#)FormattedTextField.java 1.34 98/01/27 * @author Roedy Green * @version 1.34 1998 January 18 * @deprecated No replacement * @deprecated Replaced by otherMethod(int) * @see otherMethod * @see #otherMethod * @see java.awt.Component#repaint * @see <a href="http://mindprod.com/gloss.html">Java glossary</A> * @see "Design Patterns by Gamma et. al" * @param x >B<pixels>/B< right of the origin. * @return number of oranges. * @exception java.beans.PropertyVetoException when mask is invalid * @since JDK1.1 */You can generate the HTML with javadoc MyClass.java. If you want private methods also documented use:
You can download the 9 MB JDK 1.17B which includes source but not documentation. You can download the 4 MB JDK 1.17B documentation separately. The new features in 1.1 include printing, persistence, remote procedure calls, internationalisation, signed applets, a whole new way of handling events, JavaBean components, BigInteger and BigDecimal for arbitrary precision arithmetic and reflection.
You can download the 20 MB JDK 1.2 final which includes source (hidden in src.jar) but not documentation. You can download the 16 MB JDK 1.2 final documentation separately. The new features in 1.2 mainly revolve around Swing, the platform independent set of pluggable look and feel components, JDBC 2.0, Collections and weak references.
Note, Sun's install instructions may tell you to hit download software. There is no such button. Hit continue instead. The JDK package optionally upgrades your Winsock. Undo with C:\WINDOWS\WS2BACKUP\WS2BACKUP.BAT or remove/reinstall Win95 dialup networking. The new socket software did not work for me and for a few other people I talked to. Plan your recovery before you install. Without a working Winsock you won't be able to ask for help or go searching the net for a solution. See this more friendly uninstaller.
For a complete list of classes, see the JDK 1.1 class hierarchy. Addison Wesley has a draft of their book on the JDK 1.1 online. You cannot distribute the JDK with your program. You must distribute the stripped down JRE instead. See JDE, JRE.
If you are a Canadian wanting to work in the USA, NAFTA has made life somewhat easier. If you telecommute from Canada, there is no paperwork. If you want to work physically in the US, here is what you need:
Title | ISBN | approx cost |
---|---|---|
The Java Language Specification (Java Series) (online) | 0-201-63451-1 | $40 |
Java Core Reflection | free online |
I know of only one book that covers the JVM and the binary codes, the classfile format etc. It is known as the goldfish bowl book because of its cover, but is officially called The Java Virtual Machine by Jon Meyer and Troy Downing, O'Reilly (ISBN: 1-56592-194-1).
The book is frustrating because it spends so much time with the irrelevant Jasmin assembler and its syntax. You are interested in generating byte codes directly, not assembler. It leaves out much you must discover by experiment looking at generated class files, such as whether offsets are signed or absolute, where the base is etc. In its next revision, it should set the Jasmin aside in an appendix, and include examples and more precise documentation on the binary formats. The book is still valuable because it gives a fair bit of background exposition you will not find in the vmspec itself. You would use this book to understand the VM, then the vmspec to actually write code that generated or modified class files.
You can view the Sun's Java Virtual Machine Specification online or you can download it. *
There are about 60 compilers that convert languages other than Java to JVM byte codes. They include: Tcl, BASIC, Scheme, Eiffel, COBOL, Ada, Python and Forth, as well as others less well known such as Pizza and Fiji.
See Mach J, JIT, IDE, JSpring.
![]() |
![]() |
![]() | |
![]() |
Canadian Mind Products | You can get an updated copy of this page from http://mindprod.com/jglossj.html | The Mining Company's
Focus on Java Best of the Net Award |