Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all,
Vanilla are planning an update to the site on April 24th (next Wednesday). It is a major PHP8 update which is expected to boost performance across the site. The site will be down from 7pm and it is expected to take about an hour to complete. We appreciate your patience during the update.
Thanks all.

Oracle or Openjdk

  • 21-01-2015 2:59pm
    #1
    Registered Users Posts: 2,378 ✭✭✭


    Hi

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


Comments

  • Registered Users 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,333 Mod ✭✭✭✭croo


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


  • Registered Users Posts: 2,378 ✭✭✭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