Monday, January 22, 2024

Which JRE or JDK am I using?

Here are some examples using which you can get java versions on linux systems:

  • java -version
  • java -XshowSettings:properties -version
  • ls -l $(which java)
  • ll /usr/lib/java*
  • ls -l /etc/alternatives/java
  • dirname $(readlink -f $(which java))
  • alternatives --display java
  • rpm -qa | grep jdk
  • ll /usr/lib/j*

No comments:

Post a Comment

Thank you for Commenting Will reply soon ......

Featured Posts

Enhancing Unix Proficiency: A Deeper Look at the 'Sleep' Command and Signals

Hashtags: #Unix #SleepCommand #Signals #UnixTutorial #ProcessManagement In the world of Unix commands, there are often tools that, at first ...