posted 21 years ago
Hi,
I do have a very basic java question.
I have the following class :
public class IntTest
{
public static void main(String[] args)
{
Integer i = 100;
Integer i2 = 100;
System.out.println((i == i2)? "Yes equal": "Nope not equal");
}
}
I want to compile this class on a win2000 system with jdk 1.5 installed.
java -version gives me :
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
If I'm correct : I want to compile this. because I use autoboxing I have to compile this using the -source 1.5 flag.
If I do : javac -source 1.5 IntTest.java
I get :
javac: invalid flag: -source
Usage: javac <options> <source files>
where possible options include:......... etc.
In the list with possible options it does not state : source
What am I doing wrong?
Kind regards
Werner