Error launching JabRef under Ubuntu 18.10












0















I use JabRef (Version 4.3.1) under Ubuntu, but the last time I tried to launch it, I got this error:



Error: Could not find or load main class org.jabref.JabRefMain



I have java-8-openjdk-amd64 and I think the problem has to do with OpenJFX (see FAQ) and the upgrade to Ubuntu 18.10

(The solution from this question does not work for me:
JabRef error on launch)



According to this post "JabRef explicit requires JDK8 and openjfx8".



18.10 comes with openjfx 11+26-4 (18.04 had version 8u161-b12-1ubuntu2 according to ubuntu packages)



However, I could not figure out how to install openjfx8.



Update:



I figured out how to install openjfx8 manually (downloading and running the .deb file from ubuntu packages). Before I tried to use apt. But I still get the same error.



These are my currently installed versions:



$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.10.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

$ apt-show-versions openjfx
openjfx:amd64/cosmic 8u161-b12-1ubuntu2 upgradeable to 11+26-4
openjfx:i386 not installed









share|improve this question





























    0















    I use JabRef (Version 4.3.1) under Ubuntu, but the last time I tried to launch it, I got this error:



    Error: Could not find or load main class org.jabref.JabRefMain



    I have java-8-openjdk-amd64 and I think the problem has to do with OpenJFX (see FAQ) and the upgrade to Ubuntu 18.10

    (The solution from this question does not work for me:
    JabRef error on launch)



    According to this post "JabRef explicit requires JDK8 and openjfx8".



    18.10 comes with openjfx 11+26-4 (18.04 had version 8u161-b12-1ubuntu2 according to ubuntu packages)



    However, I could not figure out how to install openjfx8.



    Update:



    I figured out how to install openjfx8 manually (downloading and running the .deb file from ubuntu packages). Before I tried to use apt. But I still get the same error.



    These are my currently installed versions:



    $ java -version
    openjdk version "1.8.0_191"
    OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.10.1-b12)
    OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

    $ apt-show-versions openjfx
    openjfx:amd64/cosmic 8u161-b12-1ubuntu2 upgradeable to 11+26-4
    openjfx:i386 not installed









    share|improve this question



























      0












      0








      0








      I use JabRef (Version 4.3.1) under Ubuntu, but the last time I tried to launch it, I got this error:



      Error: Could not find or load main class org.jabref.JabRefMain



      I have java-8-openjdk-amd64 and I think the problem has to do with OpenJFX (see FAQ) and the upgrade to Ubuntu 18.10

      (The solution from this question does not work for me:
      JabRef error on launch)



      According to this post "JabRef explicit requires JDK8 and openjfx8".



      18.10 comes with openjfx 11+26-4 (18.04 had version 8u161-b12-1ubuntu2 according to ubuntu packages)



      However, I could not figure out how to install openjfx8.



      Update:



      I figured out how to install openjfx8 manually (downloading and running the .deb file from ubuntu packages). Before I tried to use apt. But I still get the same error.



      These are my currently installed versions:



      $ java -version
      openjdk version "1.8.0_191"
      OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.10.1-b12)
      OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

      $ apt-show-versions openjfx
      openjfx:amd64/cosmic 8u161-b12-1ubuntu2 upgradeable to 11+26-4
      openjfx:i386 not installed









      share|improve this question
















      I use JabRef (Version 4.3.1) under Ubuntu, but the last time I tried to launch it, I got this error:



      Error: Could not find or load main class org.jabref.JabRefMain



      I have java-8-openjdk-amd64 and I think the problem has to do with OpenJFX (see FAQ) and the upgrade to Ubuntu 18.10

      (The solution from this question does not work for me:
      JabRef error on launch)



      According to this post "JabRef explicit requires JDK8 and openjfx8".



      18.10 comes with openjfx 11+26-4 (18.04 had version 8u161-b12-1ubuntu2 according to ubuntu packages)



      However, I could not figure out how to install openjfx8.



      Update:



      I figured out how to install openjfx8 manually (downloading and running the .deb file from ubuntu packages). Before I tried to use apt. But I still get the same error.



      These are my currently installed versions:



      $ java -version
      openjdk version "1.8.0_191"
      OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.10.1-b12)
      OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

      $ apt-show-versions openjfx
      openjfx:amd64/cosmic 8u161-b12-1ubuntu2 upgradeable to 11+26-4
      openjfx:i386 not installed






      java 18.10 openjdk






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 11 at 21:09







      josh21

















      asked Jan 11 at 17:56









      josh21josh21

      3817




      3817






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Maybe you can try to install Oracle JRE. This way you will have JavaFX inside and no need to install it separately.



          Apart from that if you want to continue trying with OpenJDK.
          I am not sure if you have 1.8.0_191 (8u191) can use openjfx version 8u161.



          By the way your java can be headless because it is written OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)



          Then it does not have part of the GUI libraries. This can be a problem.
          You have to install not a headless java.



          For more information: https://stackoverflow.com/questions/24280872/difference-between-openjdk-6-jre-openjdk-6-jre-headless-openjdk-6-jre-lib



          https://stackoverflow.com/questions/32862344/what-is-the-difference-between-openjdk-7-jre-headless-and-openjdk-7-jrejdk/32862422



          Good Luck!






          share|improve this answer
























          • I don't think it's headless, I assume I would have to specifically install openjdk-8-jre-headless (I ran sudo apt install openjdk-8-jre)

            – josh21
            Jan 16 at 11:57











          • I currently use the Oracle JRE and it works, but I would prefer to use OpenJDK

            – josh21
            Jan 16 at 11:58











          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%2f1108931%2ferror-launching-jabref-under-ubuntu-18-10%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









          0














          Maybe you can try to install Oracle JRE. This way you will have JavaFX inside and no need to install it separately.



          Apart from that if you want to continue trying with OpenJDK.
          I am not sure if you have 1.8.0_191 (8u191) can use openjfx version 8u161.



          By the way your java can be headless because it is written OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)



          Then it does not have part of the GUI libraries. This can be a problem.
          You have to install not a headless java.



          For more information: https://stackoverflow.com/questions/24280872/difference-between-openjdk-6-jre-openjdk-6-jre-headless-openjdk-6-jre-lib



          https://stackoverflow.com/questions/32862344/what-is-the-difference-between-openjdk-7-jre-headless-and-openjdk-7-jrejdk/32862422



          Good Luck!






          share|improve this answer
























          • I don't think it's headless, I assume I would have to specifically install openjdk-8-jre-headless (I ran sudo apt install openjdk-8-jre)

            – josh21
            Jan 16 at 11:57











          • I currently use the Oracle JRE and it works, but I would prefer to use OpenJDK

            – josh21
            Jan 16 at 11:58
















          0














          Maybe you can try to install Oracle JRE. This way you will have JavaFX inside and no need to install it separately.



          Apart from that if you want to continue trying with OpenJDK.
          I am not sure if you have 1.8.0_191 (8u191) can use openjfx version 8u161.



          By the way your java can be headless because it is written OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)



          Then it does not have part of the GUI libraries. This can be a problem.
          You have to install not a headless java.



          For more information: https://stackoverflow.com/questions/24280872/difference-between-openjdk-6-jre-openjdk-6-jre-headless-openjdk-6-jre-lib



          https://stackoverflow.com/questions/32862344/what-is-the-difference-between-openjdk-7-jre-headless-and-openjdk-7-jrejdk/32862422



          Good Luck!






          share|improve this answer
























          • I don't think it's headless, I assume I would have to specifically install openjdk-8-jre-headless (I ran sudo apt install openjdk-8-jre)

            – josh21
            Jan 16 at 11:57











          • I currently use the Oracle JRE and it works, but I would prefer to use OpenJDK

            – josh21
            Jan 16 at 11:58














          0












          0








          0







          Maybe you can try to install Oracle JRE. This way you will have JavaFX inside and no need to install it separately.



          Apart from that if you want to continue trying with OpenJDK.
          I am not sure if you have 1.8.0_191 (8u191) can use openjfx version 8u161.



          By the way your java can be headless because it is written OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)



          Then it does not have part of the GUI libraries. This can be a problem.
          You have to install not a headless java.



          For more information: https://stackoverflow.com/questions/24280872/difference-between-openjdk-6-jre-openjdk-6-jre-headless-openjdk-6-jre-lib



          https://stackoverflow.com/questions/32862344/what-is-the-difference-between-openjdk-7-jre-headless-and-openjdk-7-jrejdk/32862422



          Good Luck!






          share|improve this answer













          Maybe you can try to install Oracle JRE. This way you will have JavaFX inside and no need to install it separately.



          Apart from that if you want to continue trying with OpenJDK.
          I am not sure if you have 1.8.0_191 (8u191) can use openjfx version 8u161.



          By the way your java can be headless because it is written OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)



          Then it does not have part of the GUI libraries. This can be a problem.
          You have to install not a headless java.



          For more information: https://stackoverflow.com/questions/24280872/difference-between-openjdk-6-jre-openjdk-6-jre-headless-openjdk-6-jre-lib



          https://stackoverflow.com/questions/32862344/what-is-the-difference-between-openjdk-7-jre-headless-and-openjdk-7-jrejdk/32862422



          Good Luck!







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 15 at 10:53









          PulszarPulszar

          1213




          1213













          • I don't think it's headless, I assume I would have to specifically install openjdk-8-jre-headless (I ran sudo apt install openjdk-8-jre)

            – josh21
            Jan 16 at 11:57











          • I currently use the Oracle JRE and it works, but I would prefer to use OpenJDK

            – josh21
            Jan 16 at 11:58



















          • I don't think it's headless, I assume I would have to specifically install openjdk-8-jre-headless (I ran sudo apt install openjdk-8-jre)

            – josh21
            Jan 16 at 11:57











          • I currently use the Oracle JRE and it works, but I would prefer to use OpenJDK

            – josh21
            Jan 16 at 11:58

















          I don't think it's headless, I assume I would have to specifically install openjdk-8-jre-headless (I ran sudo apt install openjdk-8-jre)

          – josh21
          Jan 16 at 11:57





          I don't think it's headless, I assume I would have to specifically install openjdk-8-jre-headless (I ran sudo apt install openjdk-8-jre)

          – josh21
          Jan 16 at 11:57













          I currently use the Oracle JRE and it works, but I would prefer to use OpenJDK

          – josh21
          Jan 16 at 11:58





          I currently use the Oracle JRE and it works, but I would prefer to use OpenJDK

          – josh21
          Jan 16 at 11:58


















          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%2f1108931%2ferror-launching-jabref-under-ubuntu-18-10%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”