CIT
594 Eclipse FAQ (Updated for Eclipse 3.1M4) Spring 2005, David Matuszek |
Source->Format
really mess up my formatting?assert
statements, but does not
enable them.
In Eclipse 3.0 (Java 1.4), the settings are a little fussier. Go
to Window -> Preferences -> Java -> Compiler -> Compliance
and Classfiles and set: Compiler Compliance Level: to 1.4 |
assert
statements, you must set a flag
to the compiler. Go to Run -> Run... -> Arguments, and in
the box labeled VM arguments:, enter either -enableassertions
or just -ea
. Accept the changes and close the dialog.assert
statement, see How
do I run Javadoc?javadoc.exe
. You already have this file--it
is probably in YourJavaDirectory/jdk1.5.0/bin/
.public
fields
and methods.assert
statements, you can click Finish
at this point.assert
statements will be treated as errors). [See also How
do I get the assert statement to work?]
jdk-1_5_0-src.scsl.zip
.
You do not need to unzip this file; Eclipse likes it the way it
is.NullPointerException
or an ArrayIndexOutOfBoundsException
.Source->Format
really mess up my formatting?workspace
folder, create a new folder, and put
your files into that folder.