• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java 1.5

 
praneeth kumar
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,

I have jdk installed in my system and when i run java -version it says
'java version "1.5.0_07" ' but i am unable to run any new features like enhanced for loop,covariant retruns and Generics with it.

Am i having the correct 1.5 version?

If not can anyone please give me the download link?
Any help will be greatly appreciated
Thanks in advance
 
Henry Wong
author
Marshal
Pie
Posts: 21427
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you get when you run "javac -version" or "javac -J-version"?

Henry
 
praneeth kumar
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

When I run javac -version, it says
'javac :invalid flag: - version'
and then showing other possible options

When i run javac -J-version, it says
'java version "1.4.2_12" '

So, is this 1.4?
Where can I get 1.5?

Thank You
 
Henry Wong
author
Marshal
Pie
Posts: 21427
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the link to download the Java 5.0 JDK.

Make sure that you download the JDK. You probably downloaded and installed the JRE last time, which is why you don't have a Java 5.0 compiler.

Henry
 
praneeth kumar
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.

Take care
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic