M
Mike Baroukh
Hi.
Anybody tried jdk 1.5 on linux ?
I downloaded it, but I can't use any of new features.
Example : Generics
import java.util.*;
class test {
List<String> list = new ArrayList<String>();
}
this class compile fine on jdk 1.5 on Windows, but make on error on
linux :
Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0-beta-b32c)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)
List<String> list = new ArrayList<String>();
^
1 error
on windows, java -version returns
C:\Documents and Settings\Mike>java -version
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0-beta2-b51)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode,
sharing)
I downloaded the 2 version (windows & linux) together.
Sun says that linux version is also a beta2 version but that's not
what "java -version" report.
So, anybody having the same problem or an idea on what happened ?
Thansk in advance.
Mike
Anybody tried jdk 1.5 on linux ?
I downloaded it, but I can't use any of new features.
Example : Generics
import java.util.*;
class test {
List<String> list = new ArrayList<String>();
}
this class compile fine on jdk 1.5 on Windows, but make on error on
linux :
java version "1.5.0-beta"./java -version
Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0-beta-b32c)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)
test.java:4: <identifier> expected./javac test.java
List<String> list = new ArrayList<String>();
^
1 error
on windows, java -version returns
C:\Documents and Settings\Mike>java -version
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0-beta2-b51)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode,
sharing)
I downloaded the 2 version (windows & linux) together.
Sun says that linux version is also a beta2 version but that's not
what "java -version" report.
So, anybody having the same problem or an idea on what happened ?
Thansk in advance.
Mike