f******e 发帖数: 582 | 1 I am using ubuntu and I try to compile a .java program which has generics,
like “Stack mydata”. When I compile, I got errors like
“generics are not supported..”
When I type “javac –version”, it has “javac 1.6.0_24”. Is this the new
version of javac?
I notice that openjdk-6-jak has been installed. Openjdk-7-jdk is available.
However, when I run “apt-get install openjdk-7-jdk”, it cannot find the
package.
What is wrong? Is it something wrong with my javac? Thanks a lot. | l*********s 发帖数: 5409 | 2 Stack ? It is a copied code or you own creation? I don't think java
generic supports primitive types like c++ does. | w*r 发帖数: 2421 | 3
new
.
【在 f******e 的大作中提到】 : I am using ubuntu and I try to compile a .java program which has generics, : like “Stack mydata”. When I compile, I got errors like : “generics are not supported..” : When I type “javac –version”, it has “javac 1.6.0_24”. Is this the new : version of javac? : I notice that openjdk-6-jak has been installed. Openjdk-7-jdk is available. : However, when I run “apt-get install openjdk-7-jdk”, it cannot find the : package. : What is wrong? Is it something wrong with my javac? Thanks a lot.
|
|