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

java version. How to check?

 
Ivan Franko
Ranch Hand
Posts: 46
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On my computer i can check java version use command line: java -version.

But, how I can do it in code?

Thanks.


I finded answer:

System.getProperty("java.version");
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic