Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Current Version?

 
Edward Durai
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

1) Could you tell me anyone which is the current version of JDK Version
2) Where can I get recent updates regarding JAVA?

3) Currently i am using JDK1.5. Is any possibility to write a program to know what are the classes and interfaces available in the JDK1.5 Version.

Thank You for answering.
Regards,
Edward
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to browse around this web page, particularly its "Reference" tab -which leads you to the API documentation- and the "Downloads" tab, from where you can get the latest Java version (which is Java 6).

Information and documentation regarding older Java releases (such as Java 5 a.k.a. 1.5) can be found here.
 
Edward Durai
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to write a java program to listout all the interfaces and classes?

thanks.
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to write a java program to listout all the interfaces and classes?

I do not think any JDK provide such method , but you can try File class which reads javadocs directory , which list all the files which included into Jdk doc directory ,
I am providing a jdk 5 doc directory structure , a which find you all the classes and interfaces !! " F:\jdk-6-doc\docs\api\java " , this is definitely not a optimum solution , but as you need it , this ll help !!
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JRE comes with all classes bundled in a jar file (it's called classes.jar in my installation). You can open that using the classes in the java.util.jar package and iterate recursively through all the files it contains.

With the bytes you read from the file you can then let a ClassLoader construct Class objects for all classes/interfaces. That allows you to get a wealth of information about each class.

That's definitely not beginner's stuff, though. What are you trying to achieve by knowing which classes exist?
 
Rob Spoor
Sheriff
Pie
Posts: 20492
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
classes.jar? Not rt.jar?

You're not using a Sun JRE / JDK, are you?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rob Prime:
classes.jar? Not rt.jar?

You're not using a Sun JRE / JDK, are you?

No, I'm not. But the file size (> 20 MB) should distinguish it in any case.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic