Java8-runtime-headless dependency for Scala-2.12.2 with .deb and rpm












3















I am trying to install Scala-2.12.2 on Ubuntu16.04 and Ubuntu16.10 on Linux using the .deb . While installing the .deb, I am getting the error that " scala depends on java8-runtime-headless; however: Package java8-runtime-headless is not installed."



This dependency is not required when I try to intsall Scala-2.12.2 on Red Hat Enterprise Linux (RHEL) using the scala rpm.Any idea why there is a dependency difference in the .deb and rpm format.



I am using IBM java version "1.8.0" Java(TM) SE Runtime Environment (build pxa6480sr4fp5-20170421_01(SR4 FP5)) for the build.










share|improve this question





























    3















    I am trying to install Scala-2.12.2 on Ubuntu16.04 and Ubuntu16.10 on Linux using the .deb . While installing the .deb, I am getting the error that " scala depends on java8-runtime-headless; however: Package java8-runtime-headless is not installed."



    This dependency is not required when I try to intsall Scala-2.12.2 on Red Hat Enterprise Linux (RHEL) using the scala rpm.Any idea why there is a dependency difference in the .deb and rpm format.



    I am using IBM java version "1.8.0" Java(TM) SE Runtime Environment (build pxa6480sr4fp5-20170421_01(SR4 FP5)) for the build.










    share|improve this question



























      3












      3








      3








      I am trying to install Scala-2.12.2 on Ubuntu16.04 and Ubuntu16.10 on Linux using the .deb . While installing the .deb, I am getting the error that " scala depends on java8-runtime-headless; however: Package java8-runtime-headless is not installed."



      This dependency is not required when I try to intsall Scala-2.12.2 on Red Hat Enterprise Linux (RHEL) using the scala rpm.Any idea why there is a dependency difference in the .deb and rpm format.



      I am using IBM java version "1.8.0" Java(TM) SE Runtime Environment (build pxa6480sr4fp5-20170421_01(SR4 FP5)) for the build.










      share|improve this question
















      I am trying to install Scala-2.12.2 on Ubuntu16.04 and Ubuntu16.10 on Linux using the .deb . While installing the .deb, I am getting the error that " scala depends on java8-runtime-headless; however: Package java8-runtime-headless is not installed."



      This dependency is not required when I try to intsall Scala-2.12.2 on Red Hat Enterprise Linux (RHEL) using the scala rpm.Any idea why there is a dependency difference in the .deb and rpm format.



      I am using IBM java version "1.8.0" Java(TM) SE Runtime Environment (build pxa6480sr4fp5-20170421_01(SR4 FP5)) for the build.







      scala






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 19 '17 at 4:26







      Anuja Jakhade

















      asked May 16 '17 at 5:43









      Anuja Jakhade Anuja Jakhade

      287




      287
























          3 Answers
          3






          active

          oldest

          votes


















          2














          The solution is to download open-jdk-8 as the error messages asks for. In Ubuntu 16.04, it is already available in the Universe repository. Make sure that you have it in your /etc/apt/source.list file.



          Then, issue the usual commands



          apt-get update
          apt-get install openjdk-8-jdk


          These lines will install the full open-jdk-8, not just its headless version, used for applications that in which the display device, keyboard, or mouse is lacking.



          Good luck !






          share|improve this answer





















          • 1





            To add PPA, run: sudo add-apt-repository ppa:openjdk-r/ppa

            – Moiz Sajid
            Oct 26 '17 at 6:53



















          0














          I have the same error message on Ubuntu, however I have Java 8 installed (manually installed latest Oracle version). After installing it works. Java is on the classpath (i manually linked /usr/bin/java to my install)



          I hope it is the same for you, too.



          This is my action log:



          $ scala
          The program 'scala' is currently not installed. You can install it by typing:
          sudo apt-get install scala

          $ wget https://downloads.lightbend.com/scala/2.12.2/scala-2.12.2.deb

          $ sudo dpkg -i scala-2.12.2.deb
          Selecting previously unselected package scala.
          (Reading database ... 1342927 files and directories currently installed.)
          Preparing to unpack scala-2.12.2.deb ...
          Unpacking scala (2.12.2-400) ...
          dpkg: dependency problems prevent configuration of scala:
          scala depends on java8-runtime-headless; however:
          Package java8-runtime-headless is not installed.

          dpkg: error processing package scala (--install):
          dependency problems - leaving unconfigured
          Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
          Errors were encountered while processing:
          scala

          $ scala -version
          Scala code runner version 2.12.2 -- Copyright 2002-2017, LAMP/EPFL and Lightbend, Inc.





          share|improve this answer
























          • Yes, Scala .deb can be installed successfully with OpenJDK. I am trying to run the debian with the IBM SDK. I dont want to install oracle/openjdk to satisfy the java8-runtime-headless dependency.Is ther any package related to IBM java which can help in resolving the issue

            – Anuja Jakhade
            May 22 '17 at 5:44





















          0














          I also had Java 8 manually installed and got exactly the same error message. I fixed it by running sudo apt --fix-broken install. It identified the missing dependencies (including openjdk-8-jre-headless) and installed them.
          Everthing is fine now.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            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%2fstackoverflow.com%2fquestions%2f43993336%2fjava8-runtime-headless-dependency-for-scala-2-12-2-with-deb-and-rpm%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            The solution is to download open-jdk-8 as the error messages asks for. In Ubuntu 16.04, it is already available in the Universe repository. Make sure that you have it in your /etc/apt/source.list file.



            Then, issue the usual commands



            apt-get update
            apt-get install openjdk-8-jdk


            These lines will install the full open-jdk-8, not just its headless version, used for applications that in which the display device, keyboard, or mouse is lacking.



            Good luck !






            share|improve this answer





















            • 1





              To add PPA, run: sudo add-apt-repository ppa:openjdk-r/ppa

              – Moiz Sajid
              Oct 26 '17 at 6:53
















            2














            The solution is to download open-jdk-8 as the error messages asks for. In Ubuntu 16.04, it is already available in the Universe repository. Make sure that you have it in your /etc/apt/source.list file.



            Then, issue the usual commands



            apt-get update
            apt-get install openjdk-8-jdk


            These lines will install the full open-jdk-8, not just its headless version, used for applications that in which the display device, keyboard, or mouse is lacking.



            Good luck !






            share|improve this answer





















            • 1





              To add PPA, run: sudo add-apt-repository ppa:openjdk-r/ppa

              – Moiz Sajid
              Oct 26 '17 at 6:53














            2












            2








            2







            The solution is to download open-jdk-8 as the error messages asks for. In Ubuntu 16.04, it is already available in the Universe repository. Make sure that you have it in your /etc/apt/source.list file.



            Then, issue the usual commands



            apt-get update
            apt-get install openjdk-8-jdk


            These lines will install the full open-jdk-8, not just its headless version, used for applications that in which the display device, keyboard, or mouse is lacking.



            Good luck !






            share|improve this answer















            The solution is to download open-jdk-8 as the error messages asks for. In Ubuntu 16.04, it is already available in the Universe repository. Make sure that you have it in your /etc/apt/source.list file.



            Then, issue the usual commands



            apt-get update
            apt-get install openjdk-8-jdk


            These lines will install the full open-jdk-8, not just its headless version, used for applications that in which the display device, keyboard, or mouse is lacking.



            Good luck !







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jun 15 '17 at 1:30

























            answered Jun 15 '17 at 1:19









            Hilton FernandesHilton Fernandes

            1395




            1395








            • 1





              To add PPA, run: sudo add-apt-repository ppa:openjdk-r/ppa

              – Moiz Sajid
              Oct 26 '17 at 6:53














            • 1





              To add PPA, run: sudo add-apt-repository ppa:openjdk-r/ppa

              – Moiz Sajid
              Oct 26 '17 at 6:53








            1




            1





            To add PPA, run: sudo add-apt-repository ppa:openjdk-r/ppa

            – Moiz Sajid
            Oct 26 '17 at 6:53





            To add PPA, run: sudo add-apt-repository ppa:openjdk-r/ppa

            – Moiz Sajid
            Oct 26 '17 at 6:53













            0














            I have the same error message on Ubuntu, however I have Java 8 installed (manually installed latest Oracle version). After installing it works. Java is on the classpath (i manually linked /usr/bin/java to my install)



            I hope it is the same for you, too.



            This is my action log:



            $ scala
            The program 'scala' is currently not installed. You can install it by typing:
            sudo apt-get install scala

            $ wget https://downloads.lightbend.com/scala/2.12.2/scala-2.12.2.deb

            $ sudo dpkg -i scala-2.12.2.deb
            Selecting previously unselected package scala.
            (Reading database ... 1342927 files and directories currently installed.)
            Preparing to unpack scala-2.12.2.deb ...
            Unpacking scala (2.12.2-400) ...
            dpkg: dependency problems prevent configuration of scala:
            scala depends on java8-runtime-headless; however:
            Package java8-runtime-headless is not installed.

            dpkg: error processing package scala (--install):
            dependency problems - leaving unconfigured
            Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
            Errors were encountered while processing:
            scala

            $ scala -version
            Scala code runner version 2.12.2 -- Copyright 2002-2017, LAMP/EPFL and Lightbend, Inc.





            share|improve this answer
























            • Yes, Scala .deb can be installed successfully with OpenJDK. I am trying to run the debian with the IBM SDK. I dont want to install oracle/openjdk to satisfy the java8-runtime-headless dependency.Is ther any package related to IBM java which can help in resolving the issue

              – Anuja Jakhade
              May 22 '17 at 5:44


















            0














            I have the same error message on Ubuntu, however I have Java 8 installed (manually installed latest Oracle version). After installing it works. Java is on the classpath (i manually linked /usr/bin/java to my install)



            I hope it is the same for you, too.



            This is my action log:



            $ scala
            The program 'scala' is currently not installed. You can install it by typing:
            sudo apt-get install scala

            $ wget https://downloads.lightbend.com/scala/2.12.2/scala-2.12.2.deb

            $ sudo dpkg -i scala-2.12.2.deb
            Selecting previously unselected package scala.
            (Reading database ... 1342927 files and directories currently installed.)
            Preparing to unpack scala-2.12.2.deb ...
            Unpacking scala (2.12.2-400) ...
            dpkg: dependency problems prevent configuration of scala:
            scala depends on java8-runtime-headless; however:
            Package java8-runtime-headless is not installed.

            dpkg: error processing package scala (--install):
            dependency problems - leaving unconfigured
            Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
            Errors were encountered while processing:
            scala

            $ scala -version
            Scala code runner version 2.12.2 -- Copyright 2002-2017, LAMP/EPFL and Lightbend, Inc.





            share|improve this answer
























            • Yes, Scala .deb can be installed successfully with OpenJDK. I am trying to run the debian with the IBM SDK. I dont want to install oracle/openjdk to satisfy the java8-runtime-headless dependency.Is ther any package related to IBM java which can help in resolving the issue

              – Anuja Jakhade
              May 22 '17 at 5:44
















            0












            0








            0







            I have the same error message on Ubuntu, however I have Java 8 installed (manually installed latest Oracle version). After installing it works. Java is on the classpath (i manually linked /usr/bin/java to my install)



            I hope it is the same for you, too.



            This is my action log:



            $ scala
            The program 'scala' is currently not installed. You can install it by typing:
            sudo apt-get install scala

            $ wget https://downloads.lightbend.com/scala/2.12.2/scala-2.12.2.deb

            $ sudo dpkg -i scala-2.12.2.deb
            Selecting previously unselected package scala.
            (Reading database ... 1342927 files and directories currently installed.)
            Preparing to unpack scala-2.12.2.deb ...
            Unpacking scala (2.12.2-400) ...
            dpkg: dependency problems prevent configuration of scala:
            scala depends on java8-runtime-headless; however:
            Package java8-runtime-headless is not installed.

            dpkg: error processing package scala (--install):
            dependency problems - leaving unconfigured
            Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
            Errors were encountered while processing:
            scala

            $ scala -version
            Scala code runner version 2.12.2 -- Copyright 2002-2017, LAMP/EPFL and Lightbend, Inc.





            share|improve this answer













            I have the same error message on Ubuntu, however I have Java 8 installed (manually installed latest Oracle version). After installing it works. Java is on the classpath (i manually linked /usr/bin/java to my install)



            I hope it is the same for you, too.



            This is my action log:



            $ scala
            The program 'scala' is currently not installed. You can install it by typing:
            sudo apt-get install scala

            $ wget https://downloads.lightbend.com/scala/2.12.2/scala-2.12.2.deb

            $ sudo dpkg -i scala-2.12.2.deb
            Selecting previously unselected package scala.
            (Reading database ... 1342927 files and directories currently installed.)
            Preparing to unpack scala-2.12.2.deb ...
            Unpacking scala (2.12.2-400) ...
            dpkg: dependency problems prevent configuration of scala:
            scala depends on java8-runtime-headless; however:
            Package java8-runtime-headless is not installed.

            dpkg: error processing package scala (--install):
            dependency problems - leaving unconfigured
            Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
            Errors were encountered while processing:
            scala

            $ scala -version
            Scala code runner version 2.12.2 -- Copyright 2002-2017, LAMP/EPFL and Lightbend, Inc.






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 18 '17 at 10:25









            kapkap

            481617




            481617













            • Yes, Scala .deb can be installed successfully with OpenJDK. I am trying to run the debian with the IBM SDK. I dont want to install oracle/openjdk to satisfy the java8-runtime-headless dependency.Is ther any package related to IBM java which can help in resolving the issue

              – Anuja Jakhade
              May 22 '17 at 5:44





















            • Yes, Scala .deb can be installed successfully with OpenJDK. I am trying to run the debian with the IBM SDK. I dont want to install oracle/openjdk to satisfy the java8-runtime-headless dependency.Is ther any package related to IBM java which can help in resolving the issue

              – Anuja Jakhade
              May 22 '17 at 5:44



















            Yes, Scala .deb can be installed successfully with OpenJDK. I am trying to run the debian with the IBM SDK. I dont want to install oracle/openjdk to satisfy the java8-runtime-headless dependency.Is ther any package related to IBM java which can help in resolving the issue

            – Anuja Jakhade
            May 22 '17 at 5:44







            Yes, Scala .deb can be installed successfully with OpenJDK. I am trying to run the debian with the IBM SDK. I dont want to install oracle/openjdk to satisfy the java8-runtime-headless dependency.Is ther any package related to IBM java which can help in resolving the issue

            – Anuja Jakhade
            May 22 '17 at 5:44













            0














            I also had Java 8 manually installed and got exactly the same error message. I fixed it by running sudo apt --fix-broken install. It identified the missing dependencies (including openjdk-8-jre-headless) and installed them.
            Everthing is fine now.






            share|improve this answer




























              0














              I also had Java 8 manually installed and got exactly the same error message. I fixed it by running sudo apt --fix-broken install. It identified the missing dependencies (including openjdk-8-jre-headless) and installed them.
              Everthing is fine now.






              share|improve this answer


























                0












                0








                0







                I also had Java 8 manually installed and got exactly the same error message. I fixed it by running sudo apt --fix-broken install. It identified the missing dependencies (including openjdk-8-jre-headless) and installed them.
                Everthing is fine now.






                share|improve this answer













                I also had Java 8 manually installed and got exactly the same error message. I fixed it by running sudo apt --fix-broken install. It identified the missing dependencies (including openjdk-8-jre-headless) and installed them.
                Everthing is fine now.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 28 '18 at 0:00









                JColaresJColares

                9314




                9314






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • 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%2fstackoverflow.com%2fquestions%2f43993336%2fjava8-runtime-headless-dependency-for-scala-2-12-2-with-deb-and-rpm%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

                    Lallio

                    Unable to find Lightning Node

                    Futebolista