I am trying to compile an example for java from THE REALLY BIG INDEX:
http://java.sun.com/docs/books/tutorial/java/javaOO/examples/Card.java
However whenever I try to compile:
javac Card.java
I get the following error:
"warning: as of release 1.4, assert is a keyword, and may not be used as an identifier"
And if I try to compile it with enable assertions I get:
javac: invalid flag: -ea
Usage: javac <options> <source files>
Any ideas on how to get this code to compile? I am running Java version 1.4.2_12, which I believe should be able to handle assertions. Thanks for your help.
Cheers,
ScKaSx
http://java.sun.com/docs/books/tutorial/java/javaOO/examples/Card.java
However whenever I try to compile:
javac Card.java
I get the following error:
"warning: as of release 1.4, assert is a keyword, and may not be used as an identifier"
And if I try to compile it with enable assertions I get:
javac: invalid flag: -ea
Usage: javac <options> <source files>
Any ideas on how to get this code to compile? I am running Java version 1.4.2_12, which I believe should be able to handle assertions. Thanks for your help.
Cheers,
ScKaSx