This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java version finder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java version finder " Watch "java version finder " New topic

java version finder

ram kumar
Ranch Hand

Joined: May 22, 2008
Posts: 146
hi pals,

After a long time am entering this forum,

i just wanted to know is there a way to find the java version by seeing the code.

I have a code and we are unable to find whether what version it is ..

i mean the jdk version !

would some one help me how to do that !


Is there an easy way to do it !


Discussion - the powerfull way to excellence!
Janardan Kelkar
Ranch Hand

Joined: May 05, 2008
Posts: 72

I guess you've got to run it on different versions and see if it runs properly, then you can label the latest version on which it runs as the one on which the code has been written.

When the compiler's not happy, ain't nobody happy.
Pawel Nowacki
Ranch Hand

Joined: Nov 14, 2008
Posts: 67
Maybe this article will help you.
I agree. Here's the link:
subject: java version finder