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 there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Oracle or Openjdk

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


    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,336 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,386 ✭✭✭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