aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes java 1.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "java 1.5" Watch "java 1.5" New topic
Author

java 1.5

praneeth kumar
Greenhorn

Joined: May 10, 2007
Posts: 20
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


SCJP 1.5 - 91%
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18981
    
  40

What do you get when you run "javac -version" or "javac -J-version"?

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
praneeth kumar
Greenhorn

Joined: May 10, 2007
Posts: 20
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
Sheriff

Joined: Sep 28, 2004
Posts: 18981
    
  40

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

Joined: May 10, 2007
Posts: 20
Thanks a lot.

Take care
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java 1.5