How to install JDK 6 from a bin file on Ubuntu 12.04 LTS 64 bit
The Android Open Source project requires JDK 6. From posts I have read all over, the Open Source JDk will not work. I have tried many things from numerous posts here and on other webs to no avail. Either the solutions are not for 64 bit, or the repos no longer are available.
When running:
$ sudo apt-get install sun-java6-jdk
I get:
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sun-java6-jdk' has no installation candidate
I have downloaded the binary from Oracle directly, but I don't know how to install it:
jdk-6u43-linux-x64.bin
Please advise
linux ubuntu installation 64-bit java
add a comment |
The Android Open Source project requires JDK 6. From posts I have read all over, the Open Source JDk will not work. I have tried many things from numerous posts here and on other webs to no avail. Either the solutions are not for 64 bit, or the repos no longer are available.
When running:
$ sudo apt-get install sun-java6-jdk
I get:
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sun-java6-jdk' has no installation candidate
I have downloaded the binary from Oracle directly, but I don't know how to install it:
jdk-6u43-linux-x64.bin
Please advise
linux ubuntu installation 64-bit java
add a comment |
The Android Open Source project requires JDK 6. From posts I have read all over, the Open Source JDk will not work. I have tried many things from numerous posts here and on other webs to no avail. Either the solutions are not for 64 bit, or the repos no longer are available.
When running:
$ sudo apt-get install sun-java6-jdk
I get:
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sun-java6-jdk' has no installation candidate
I have downloaded the binary from Oracle directly, but I don't know how to install it:
jdk-6u43-linux-x64.bin
Please advise
linux ubuntu installation 64-bit java
The Android Open Source project requires JDK 6. From posts I have read all over, the Open Source JDk will not work. I have tried many things from numerous posts here and on other webs to no avail. Either the solutions are not for 64 bit, or the repos no longer are available.
When running:
$ sudo apt-get install sun-java6-jdk
I get:
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sun-java6-jdk' has no installation candidate
I have downloaded the binary from Oracle directly, but I don't know how to install it:
jdk-6u43-linux-x64.bin
Please advise
linux ubuntu installation 64-bit java
linux ubuntu installation 64-bit java
edited May 19 '13 at 23:12
Roy Hinkley
asked May 19 '13 at 22:32
Roy HinkleyRoy Hinkley
2261616
2261616
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Follow the instructions on JDK Self-Extracting Installation for Linux (64-bit) to install the 64-bit JDK on Ubuntu. Basically you need to make the file executable ( chmod +x jdk-6u43-linux-x64.bin
) and then run it (./jdk-6u43-linux-x64.bin
).
There is a note in the docs on running this with root access to install to a shared, system location such as /usr/local
or /usr/java
. If installing to one of these locations I usually change directory there and run the installer from that location.
You may also want to reference the Ubuntu Java page, as it has some instructions on setting-up alternatives to include the new Java install.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f597471%2fhow-to-install-jdk-6-from-a-bin-file-on-ubuntu-12-04-lts-64-bit%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Follow the instructions on JDK Self-Extracting Installation for Linux (64-bit) to install the 64-bit JDK on Ubuntu. Basically you need to make the file executable ( chmod +x jdk-6u43-linux-x64.bin
) and then run it (./jdk-6u43-linux-x64.bin
).
There is a note in the docs on running this with root access to install to a shared, system location such as /usr/local
or /usr/java
. If installing to one of these locations I usually change directory there and run the installer from that location.
You may also want to reference the Ubuntu Java page, as it has some instructions on setting-up alternatives to include the new Java install.
add a comment |
Follow the instructions on JDK Self-Extracting Installation for Linux (64-bit) to install the 64-bit JDK on Ubuntu. Basically you need to make the file executable ( chmod +x jdk-6u43-linux-x64.bin
) and then run it (./jdk-6u43-linux-x64.bin
).
There is a note in the docs on running this with root access to install to a shared, system location such as /usr/local
or /usr/java
. If installing to one of these locations I usually change directory there and run the installer from that location.
You may also want to reference the Ubuntu Java page, as it has some instructions on setting-up alternatives to include the new Java install.
add a comment |
Follow the instructions on JDK Self-Extracting Installation for Linux (64-bit) to install the 64-bit JDK on Ubuntu. Basically you need to make the file executable ( chmod +x jdk-6u43-linux-x64.bin
) and then run it (./jdk-6u43-linux-x64.bin
).
There is a note in the docs on running this with root access to install to a shared, system location such as /usr/local
or /usr/java
. If installing to one of these locations I usually change directory there and run the installer from that location.
You may also want to reference the Ubuntu Java page, as it has some instructions on setting-up alternatives to include the new Java install.
Follow the instructions on JDK Self-Extracting Installation for Linux (64-bit) to install the 64-bit JDK on Ubuntu. Basically you need to make the file executable ( chmod +x jdk-6u43-linux-x64.bin
) and then run it (./jdk-6u43-linux-x64.bin
).
There is a note in the docs on running this with root access to install to a shared, system location such as /usr/local
or /usr/java
. If installing to one of these locations I usually change directory there and run the installer from that location.
You may also want to reference the Ubuntu Java page, as it has some instructions on setting-up alternatives to include the new Java install.
edited May 20 '13 at 14:15
terdon
41.3k885135
41.3k885135
answered May 20 '13 at 1:00
javabrettjavabrett
404310
404310
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f597471%2fhow-to-install-jdk-6-from-a-bin-file-on-ubuntu-12-04-lts-64-bit%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown