Kubuntu 14.04 - Can Oracle JDK 8 (for later use with NetBeans 8) be installed along with currently installed...
I'm not facing an actual issue yet, rather trying to avoid any...
Currently, these packages are installed on my PC (automatically installed during a fresh install of Kubuntu 14.04):
$ apt list openjdk* --installed
Listing... Done
**openjdk-6-jdk**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 amd64 [installed,automatic]
**openjdk-6-jre**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 amd64 [installed,automatic]
**openjdk-6-jre-headless**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 amd64 [installed,automatic]
**openjdk-6-jre-lib**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 all [installed,automatic]
**openjdk-7-doc**/trusty-updates,trusty-security,now 7u79-2.5.6-0ubuntu1.14.04.1 all [installed,automatic]
**openjdk-7-jre**/trusty-updates,trusty-security,now 7u79-2.5.6-0ubuntu1.14.04.1 amd64 [installed]
**openjdk-7-jre-headless**/trusty-updates,trusty-security,now 7u79-2.5.6-0ubuntu1.14.04.1 amd64 [installed]
May I safely leave these packages present on my PC and install Oracle JDK 8 from Oracle.com along with these older versions of Java?
And is there any recommendation regarding the installation directory for Oracle JDK 8?
Thank you in advance for your suggestions.
14.04 kubuntu openjdk jdk oracle
add a comment |
I'm not facing an actual issue yet, rather trying to avoid any...
Currently, these packages are installed on my PC (automatically installed during a fresh install of Kubuntu 14.04):
$ apt list openjdk* --installed
Listing... Done
**openjdk-6-jdk**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 amd64 [installed,automatic]
**openjdk-6-jre**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 amd64 [installed,automatic]
**openjdk-6-jre-headless**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 amd64 [installed,automatic]
**openjdk-6-jre-lib**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 all [installed,automatic]
**openjdk-7-doc**/trusty-updates,trusty-security,now 7u79-2.5.6-0ubuntu1.14.04.1 all [installed,automatic]
**openjdk-7-jre**/trusty-updates,trusty-security,now 7u79-2.5.6-0ubuntu1.14.04.1 amd64 [installed]
**openjdk-7-jre-headless**/trusty-updates,trusty-security,now 7u79-2.5.6-0ubuntu1.14.04.1 amd64 [installed]
May I safely leave these packages present on my PC and install Oracle JDK 8 from Oracle.com along with these older versions of Java?
And is there any recommendation regarding the installation directory for Oracle JDK 8?
Thank you in advance for your suggestions.
14.04 kubuntu openjdk jdk oracle
Hi again. As I was a bit impatient solving all the issues I've been facing over the past 24H trying to get a functional Eclipse or NetBeans installation (via Muon - absolute failure), I finally followed an online tutorial to install JDK 8u51 and NetBeans 8.0.2 which apparently succeeded brilliantly. In addition to setting the JAVA_HOME env. variable for my user environment (done), are there any other important tasks to perform to complete this JDK 8 installation? Thanks again.
– pubalapoub
Aug 13 '15 at 16:41
add a comment |
I'm not facing an actual issue yet, rather trying to avoid any...
Currently, these packages are installed on my PC (automatically installed during a fresh install of Kubuntu 14.04):
$ apt list openjdk* --installed
Listing... Done
**openjdk-6-jdk**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 amd64 [installed,automatic]
**openjdk-6-jre**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 amd64 [installed,automatic]
**openjdk-6-jre-headless**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 amd64 [installed,automatic]
**openjdk-6-jre-lib**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 all [installed,automatic]
**openjdk-7-doc**/trusty-updates,trusty-security,now 7u79-2.5.6-0ubuntu1.14.04.1 all [installed,automatic]
**openjdk-7-jre**/trusty-updates,trusty-security,now 7u79-2.5.6-0ubuntu1.14.04.1 amd64 [installed]
**openjdk-7-jre-headless**/trusty-updates,trusty-security,now 7u79-2.5.6-0ubuntu1.14.04.1 amd64 [installed]
May I safely leave these packages present on my PC and install Oracle JDK 8 from Oracle.com along with these older versions of Java?
And is there any recommendation regarding the installation directory for Oracle JDK 8?
Thank you in advance for your suggestions.
14.04 kubuntu openjdk jdk oracle
I'm not facing an actual issue yet, rather trying to avoid any...
Currently, these packages are installed on my PC (automatically installed during a fresh install of Kubuntu 14.04):
$ apt list openjdk* --installed
Listing... Done
**openjdk-6-jdk**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 amd64 [installed,automatic]
**openjdk-6-jre**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 amd64 [installed,automatic]
**openjdk-6-jre-headless**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 amd64 [installed,automatic]
**openjdk-6-jre-lib**/trusty-updates,trusty-security,now 6b36-1.13.8-0ubuntu1~14.04 all [installed,automatic]
**openjdk-7-doc**/trusty-updates,trusty-security,now 7u79-2.5.6-0ubuntu1.14.04.1 all [installed,automatic]
**openjdk-7-jre**/trusty-updates,trusty-security,now 7u79-2.5.6-0ubuntu1.14.04.1 amd64 [installed]
**openjdk-7-jre-headless**/trusty-updates,trusty-security,now 7u79-2.5.6-0ubuntu1.14.04.1 amd64 [installed]
May I safely leave these packages present on my PC and install Oracle JDK 8 from Oracle.com along with these older versions of Java?
And is there any recommendation regarding the installation directory for Oracle JDK 8?
Thank you in advance for your suggestions.
14.04 kubuntu openjdk jdk oracle
14.04 kubuntu openjdk jdk oracle
edited Aug 13 '15 at 14:54
pubalapoub
asked Aug 13 '15 at 14:33
pubalapoubpubalapoub
917
917
Hi again. As I was a bit impatient solving all the issues I've been facing over the past 24H trying to get a functional Eclipse or NetBeans installation (via Muon - absolute failure), I finally followed an online tutorial to install JDK 8u51 and NetBeans 8.0.2 which apparently succeeded brilliantly. In addition to setting the JAVA_HOME env. variable for my user environment (done), are there any other important tasks to perform to complete this JDK 8 installation? Thanks again.
– pubalapoub
Aug 13 '15 at 16:41
add a comment |
Hi again. As I was a bit impatient solving all the issues I've been facing over the past 24H trying to get a functional Eclipse or NetBeans installation (via Muon - absolute failure), I finally followed an online tutorial to install JDK 8u51 and NetBeans 8.0.2 which apparently succeeded brilliantly. In addition to setting the JAVA_HOME env. variable for my user environment (done), are there any other important tasks to perform to complete this JDK 8 installation? Thanks again.
– pubalapoub
Aug 13 '15 at 16:41
Hi again. As I was a bit impatient solving all the issues I've been facing over the past 24H trying to get a functional Eclipse or NetBeans installation (via Muon - absolute failure), I finally followed an online tutorial to install JDK 8u51 and NetBeans 8.0.2 which apparently succeeded brilliantly. In addition to setting the JAVA_HOME env. variable for my user environment (done), are there any other important tasks to perform to complete this JDK 8 installation? Thanks again.
– pubalapoub
Aug 13 '15 at 16:41
Hi again. As I was a bit impatient solving all the issues I've been facing over the past 24H trying to get a functional Eclipse or NetBeans installation (via Muon - absolute failure), I finally followed an online tutorial to install JDK 8u51 and NetBeans 8.0.2 which apparently succeeded brilliantly. In addition to setting the JAVA_HOME env. variable for my user environment (done), are there any other important tasks to perform to complete this JDK 8 installation? Thanks again.
– pubalapoub
Aug 13 '15 at 16:41
add a comment |
1 Answer
1
active
oldest
votes
Ok, everything went ok and here is how I did briefly:
I left OpenJDK 6&7 installed on my PC. Apparently no problem installing Oracle JDK8 along with them, in a dedicated directory. I only added these lines to my
~/.profileat the end of the whole installation process to be sure to be using JDK/JRE 8 at all times:
export JAVA_HOME=/usr/local/bin/jdk1.8.0_51
export PATH=$JAVA_HOME/bin:$PATH
Note: JAVA_HOME wasn't set previously.
followed tutorial http://www.tecmint.com/html5-mobile-web-development-using-netbeans-and-java/ to install JDK and NetBeans (adapted a bit to the most recent JDK/NetBeans releases and to my needs - no intention to develop HTML5 applications, so I downloaded the "Java SE" edition of NetBeans).
Installation directories I chose (I actually conformed to the tutorial):
/usr/local/bin #for JDK.
/usr/local #for NetBeans.
Addition:
Some time later I realized that double-clicking on a .jar file was still launching "OpenJDK Java 6 Runtime" (cautious-launcher %f /usr/bin/java -jar) by default.
So I added a new entry (later set as the preferred one) in KDE's File Association preferences, for known type "application > x-java-archive":
[Name = Oracle JDK 8 Runtime]
[Command = cautious-launcher %f /usr/local/bin/jdk1.8.0_51/bin/java -jar]
Note: as for existing entry "OpenJDK Java 6 Runtime", .jar applications will not be allowed to execute except if their Executable bit is set (to be set manually if needed) - refer to "cautious-launcher".
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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%2faskubuntu.com%2fquestions%2f661005%2fkubuntu-14-04-can-oracle-jdk-8-for-later-use-with-netbeans-8-be-installed-al%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
Ok, everything went ok and here is how I did briefly:
I left OpenJDK 6&7 installed on my PC. Apparently no problem installing Oracle JDK8 along with them, in a dedicated directory. I only added these lines to my
~/.profileat the end of the whole installation process to be sure to be using JDK/JRE 8 at all times:
export JAVA_HOME=/usr/local/bin/jdk1.8.0_51
export PATH=$JAVA_HOME/bin:$PATH
Note: JAVA_HOME wasn't set previously.
followed tutorial http://www.tecmint.com/html5-mobile-web-development-using-netbeans-and-java/ to install JDK and NetBeans (adapted a bit to the most recent JDK/NetBeans releases and to my needs - no intention to develop HTML5 applications, so I downloaded the "Java SE" edition of NetBeans).
Installation directories I chose (I actually conformed to the tutorial):
/usr/local/bin #for JDK.
/usr/local #for NetBeans.
Addition:
Some time later I realized that double-clicking on a .jar file was still launching "OpenJDK Java 6 Runtime" (cautious-launcher %f /usr/bin/java -jar) by default.
So I added a new entry (later set as the preferred one) in KDE's File Association preferences, for known type "application > x-java-archive":
[Name = Oracle JDK 8 Runtime]
[Command = cautious-launcher %f /usr/local/bin/jdk1.8.0_51/bin/java -jar]
Note: as for existing entry "OpenJDK Java 6 Runtime", .jar applications will not be allowed to execute except if their Executable bit is set (to be set manually if needed) - refer to "cautious-launcher".
add a comment |
Ok, everything went ok and here is how I did briefly:
I left OpenJDK 6&7 installed on my PC. Apparently no problem installing Oracle JDK8 along with them, in a dedicated directory. I only added these lines to my
~/.profileat the end of the whole installation process to be sure to be using JDK/JRE 8 at all times:
export JAVA_HOME=/usr/local/bin/jdk1.8.0_51
export PATH=$JAVA_HOME/bin:$PATH
Note: JAVA_HOME wasn't set previously.
followed tutorial http://www.tecmint.com/html5-mobile-web-development-using-netbeans-and-java/ to install JDK and NetBeans (adapted a bit to the most recent JDK/NetBeans releases and to my needs - no intention to develop HTML5 applications, so I downloaded the "Java SE" edition of NetBeans).
Installation directories I chose (I actually conformed to the tutorial):
/usr/local/bin #for JDK.
/usr/local #for NetBeans.
Addition:
Some time later I realized that double-clicking on a .jar file was still launching "OpenJDK Java 6 Runtime" (cautious-launcher %f /usr/bin/java -jar) by default.
So I added a new entry (later set as the preferred one) in KDE's File Association preferences, for known type "application > x-java-archive":
[Name = Oracle JDK 8 Runtime]
[Command = cautious-launcher %f /usr/local/bin/jdk1.8.0_51/bin/java -jar]
Note: as for existing entry "OpenJDK Java 6 Runtime", .jar applications will not be allowed to execute except if their Executable bit is set (to be set manually if needed) - refer to "cautious-launcher".
add a comment |
Ok, everything went ok and here is how I did briefly:
I left OpenJDK 6&7 installed on my PC. Apparently no problem installing Oracle JDK8 along with them, in a dedicated directory. I only added these lines to my
~/.profileat the end of the whole installation process to be sure to be using JDK/JRE 8 at all times:
export JAVA_HOME=/usr/local/bin/jdk1.8.0_51
export PATH=$JAVA_HOME/bin:$PATH
Note: JAVA_HOME wasn't set previously.
followed tutorial http://www.tecmint.com/html5-mobile-web-development-using-netbeans-and-java/ to install JDK and NetBeans (adapted a bit to the most recent JDK/NetBeans releases and to my needs - no intention to develop HTML5 applications, so I downloaded the "Java SE" edition of NetBeans).
Installation directories I chose (I actually conformed to the tutorial):
/usr/local/bin #for JDK.
/usr/local #for NetBeans.
Addition:
Some time later I realized that double-clicking on a .jar file was still launching "OpenJDK Java 6 Runtime" (cautious-launcher %f /usr/bin/java -jar) by default.
So I added a new entry (later set as the preferred one) in KDE's File Association preferences, for known type "application > x-java-archive":
[Name = Oracle JDK 8 Runtime]
[Command = cautious-launcher %f /usr/local/bin/jdk1.8.0_51/bin/java -jar]
Note: as for existing entry "OpenJDK Java 6 Runtime", .jar applications will not be allowed to execute except if their Executable bit is set (to be set manually if needed) - refer to "cautious-launcher".
Ok, everything went ok and here is how I did briefly:
I left OpenJDK 6&7 installed on my PC. Apparently no problem installing Oracle JDK8 along with them, in a dedicated directory. I only added these lines to my
~/.profileat the end of the whole installation process to be sure to be using JDK/JRE 8 at all times:
export JAVA_HOME=/usr/local/bin/jdk1.8.0_51
export PATH=$JAVA_HOME/bin:$PATH
Note: JAVA_HOME wasn't set previously.
followed tutorial http://www.tecmint.com/html5-mobile-web-development-using-netbeans-and-java/ to install JDK and NetBeans (adapted a bit to the most recent JDK/NetBeans releases and to my needs - no intention to develop HTML5 applications, so I downloaded the "Java SE" edition of NetBeans).
Installation directories I chose (I actually conformed to the tutorial):
/usr/local/bin #for JDK.
/usr/local #for NetBeans.
Addition:
Some time later I realized that double-clicking on a .jar file was still launching "OpenJDK Java 6 Runtime" (cautious-launcher %f /usr/bin/java -jar) by default.
So I added a new entry (later set as the preferred one) in KDE's File Association preferences, for known type "application > x-java-archive":
[Name = Oracle JDK 8 Runtime]
[Command = cautious-launcher %f /usr/local/bin/jdk1.8.0_51/bin/java -jar]
Note: as for existing entry "OpenJDK Java 6 Runtime", .jar applications will not be allowed to execute except if their Executable bit is set (to be set manually if needed) - refer to "cautious-launcher".
edited Jan 17 at 21:50
guntbert
9,216133170
9,216133170
answered Aug 14 '15 at 19:42
pubalapoubpubalapoub
917
917
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f661005%2fkubuntu-14-04-can-oracle-jdk-8-for-later-use-with-netbeans-8-be-installed-al%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
Hi again. As I was a bit impatient solving all the issues I've been facing over the past 24H trying to get a functional Eclipse or NetBeans installation (via Muon - absolute failure), I finally followed an online tutorial to install JDK 8u51 and NetBeans 8.0.2 which apparently succeeded brilliantly. In addition to setting the JAVA_HOME env. variable for my user environment (done), are there any other important tasks to perform to complete this JDK 8 installation? Thanks again.
– pubalapoub
Aug 13 '15 at 16:41