Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Oracle or Openjdk

  • 21-01-2015 01:59PM
    #1
    Registered Users, Registered Users 2 Posts: 2,432 ✭✭✭


    Hi

    From the cmd line does anyone know how to tell if the java version is oracle or openjdk?
    Thanks.


Comments

  • Registered Users, Registered Users 2 Posts: 339 ✭✭duffman85


    java -version will tell you if you're using openjdk or not.
    This was on linux but you should see similar output for Windows:
    # java -version
    java version "1.7.0_75"
    OpenJDK Runtime Environment (rhel-2.5.4.0.el6_6-i386 u75-b13)
    OpenJDK Client VM (build 24.75-b04, mixed mode, sharing)
    
    
    On systems with Oracle JDK:
    # java -version
    java version "1.6.0_71"
    Java(TM) SE Runtime Environment (build 1.6.0_71-b12)
    Java HotSpot(TM) Server VM (build 20.71-b01, mixed mode)
    
    
    if you're using linux/unix - you can check the installed packages


  • Moderators, Technology & Internet Moderators Posts: 1,338 Mod ✭✭✭✭croo


    Also if you have multiple versions installed it might be worth double checking the JAVA_HOME and PATH values


  • Registered Users, Registered Users 2 Posts: 2,432 ✭✭✭RebelButtMunch


    duffman85 wrote: »
    java -version will tell you if you're using openjdk or not.
    This was on linux but you should see similar output for Windows:
    # java -version
    java version "1.7.0_75"
    OpenJDK Runtime Environment (rhel-2.5.4.0.el6_6-i386 u75-b13)
    OpenJDK Client VM (build 24.75-b04, mixed mode, sharing)
    
    
    On systems with Oracle JDK:
    # java -version
    java version "1.6.0_71"
    Java(TM) SE Runtime Environment (build 1.6.0_71-b12)
    Java HotSpot(TM) Server VM (build 20.71-b01, mixed mode)
    
    
    if you're using linux/unix - you can check the installed packages

    That did the trick thanks. It's the Oracle version I have (that doesn't actually mention oracle in the output :) )


  • Closed Accounts Posts: 5 ColdCotton


    Is there any differences between oracle jdk and openjdk.


Advertisement