Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8187199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:28:58+00:00 2026-06-07T02:28:58+00:00

after installing jdk7u5 for mac os I got different java-versions for normal user and

  • 0

after installing jdk7u5 for mac os I got different java-versions for “normal” user and root.

java -version gives me the 7.

sudo java -version gives me the 6.

I’ve looked up in the
/System/Library/Frameworks/JavaVM.framework/Versions/ found that there are some links. After I resolved the links to the real Directory I tried it again with the whole path.

/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java -version
-> 7

sudo /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java -version -> 6

Same with javac!

Hope you guys could help me!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T02:29:00+00:00Added an answer on June 7, 2026 at 2:29 am

    Under OSX /usr/bin/java locates the java version to be used by looking at what you chose using /Applications/Utilities/Java Preferences.app. The files ths uses are also updated by the Oracle updater.

    As you have to drag the versions manually to set Java 1.7 you will have only set this for the user you run it as ie not root. To set it for root I ran the app as sudo /Applications/Utilities/Java\ Preferences.app/Contents/MacOS/Java\ Preferences and moved 1.7 to the top.

    As far as I can see the files the app updates are in ~/Library/Preferences/ByHost/com.apple.java.JavaPreferences.<hex number>.plist where <hex number> is machine related. Root’s home directory is /var/root so I now have /var/root/Library/Preferences/ByHost/com.apple.java.JavaPreferences.<hex number>.plist

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After installing rabbitmq on mac (lion), the document says its context user is named
After installing the QuickReport 5.0 version, I get property error messages on all Reports
After installing Snow Leopard I got the following error when connecting to a remote
After installing the F# September CTP (1.9.6.2), Visual Studio 2008 frequently gives an error
After installing Ruby and Ruby Gems: $ sudo apt-get install ruby rubygems ... $
After installing Boost library using Synaptic Package Manager, the version installed is 1.42 .
after installing django I tried django-admin.py startproject mysite and that worked, then I got
After installing export plugin i can not run grails application and get this java.lang.LinkageError:
When compiling a program I wrote on Mac OS X after installing the necessary
After installing jdk 7 and switching java platform for my project in ide i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.