Kubuntu 14.04 - Can Oracle JDK 8 (for later use with NetBeans 8) be installed along with currently installed...












0















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.










share|improve this question

























  • 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


















0















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.










share|improve this question

























  • 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
















0












0








0








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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





















  • 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












1 Answer
1






active

oldest

votes


















1














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 ~/.profile at 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".






share|improve this answer

























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    1














    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 ~/.profile at 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".






    share|improve this answer






























      1














      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 ~/.profile at 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".






      share|improve this answer




























        1












        1








        1







        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 ~/.profile at 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".






        share|improve this answer















        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 ~/.profile at 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".







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 17 at 21:50









        guntbert

        9,216133170




        9,216133170










        answered Aug 14 '15 at 19:42









        pubalapoubpubalapoub

        917




        917






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Mouse cursor on multiple screens with different PPI

            Agildo Ribeiro

            Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”