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 9222579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:51:58+00:00 2026-06-18T03:51:58+00:00

I have Java 1.6 and Java 1.7 in different directories (/usr/java) and a soft

  • 0

I have Java 1.6 and Java 1.7 in different directories (/usr/java) and a soft link pointing to one of them (the one I wish to use at that time).

i.e.:

total 16
drwxr-xr-x  4 root  root  4096 Jan 31 12:16 ./
drwxr-xr-x 11 root  root  4096 Jan 30 12:52 ../
lrwxrwxrwx  1 root  root     6 Jan 31 12:16 default -> java6//
lrwxrwxrwx  1 root  root    12 Jan 31 12:15 java6 -> jdk1.6.0_37//
lrwxrwxrwx  1 root  root    12 Jan 31 12:15 java7 -> jdk1.7.0_11//
drwxr-xr-x  8 david david 4096 Jan 30 18:16 jdk1.6.0_37/
drwxr-xr-x  8 david david 4096 Jan 31 12:14 jdk1.7.0_11/

This means I can just change where the default link points and I change where my JAVA_HOME points.

My system is, however, overrun with OpenJDK and Iced tea. I’ve removed them (I think) so not I have no system java at all.

My question is, how do I make my system look for Java where the default link is pointing?

Thank all

Dave

  • 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-18T03:51:59+00:00Added an answer on June 18, 2026 at 3:51 am

    Just followed the steps on this blog:

    How to Install Oracle Java on Ubuntu Linux: 18 steps

    and it seems to have done what I’d like.

    Thanks to all for the advise though.

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

Sidebar

Related Questions

I have a bunch of third-party Java classes that use different property names for
I have 4 different Java Projects created in Eclipse. One of them contains all
I have a java program that performs 5 different tasks. When I run the
We have a Prepared Statement in Java and we hear that it is different
I have an application in java that uses two different threads.And for sharing data
I have problems with moving files in directories in Java. The problem is that
I have 2 different Java projects, one has 2 classes: dynamicbeans.DynamicBean2 and dynamic.Validator .
I have 7 different java daemons that I run (all 7) on 3 different
I have two different java projects (I'll call them project 1 and Project 2
i have java process that sends emails for different email address and i am

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.