• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Regarding Current Version?

 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to write a java program to listout all the interfaces and classes?

thanks.
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
classes.jar? Not rt.jar?

You're not using a Sun JRE / JDK, are you?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic