JavaFX missing, Ubuntu 18.04 Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)How to Install JavaFX with openjdk-11-jdk?Using OpenJDK and JavaFX for self-contained, modular packagingCan't execute my .jar JavaFX applicationHow do I upgrade Java from 8 to 9+ on Ubuntu 18.04?NetBeans Hangs on New Project Creation64-bit java not workingInstalling JDK.rpm file using alienUninstalling Netbeans 8.2 in Ubuntu 18.04NetBeans isn't opening on Ubuntu 18.04JavaFX SDK 11 installation for new Ubuntu userWhich Version of Netbeans is more appropriate with JDK 10.0.1Issue with Ubuntu 18.04 and JavaFXJDK11 on Ubuntu 18.04Using OpenJDK and JavaFX for self-contained, modular packaging

Crossing US/Canada Border for less than 24 hours

Performance gap between vector<bool> and array

How come Sam didn't become Lord of Horn Hill?

Generate an RGB colour grid

Using audio cues to encourage good posture

Project Euler #1 in C++

Converted a Scalar function to a TVF function for parallel execution-Still running in Serial mode

What do you call the main part of a joke?

Significance of Cersei's obsession with elephants?

Chinese Seal on silk painting - what does it mean?

Why do we bend a book to keep it straight?

How fail-safe is nr as stop bytes?

What is the difference between globalisation and imperialism?

Is CEO the "profession" with the most psychopaths?

Why should I vote and accept answers?

Should I follow up with an employee I believe overracted to a mistake I made?

What would you call this weird metallic apparatus that allows you to lift people?

What is the topology associated with the algebras for the ultrafilter monad?

Denied boarding although I have proper visa and documentation. To whom should I make a complaint?

Did Krishna say in Bhagavad Gita "I am in every living being"

Disembodied hand growing fangs

SF book about people trapped in a series of worlds they imagine

Is a ledger board required if the side of my house is wood?

What was the first language to use conditional keywords?



JavaFX missing, Ubuntu 18.04



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)How to Install JavaFX with openjdk-11-jdk?Using OpenJDK and JavaFX for self-contained, modular packagingCan't execute my .jar JavaFX applicationHow do I upgrade Java from 8 to 9+ on Ubuntu 18.04?NetBeans Hangs on New Project Creation64-bit java not workingInstalling JDK.rpm file using alienUninstalling Netbeans 8.2 in Ubuntu 18.04NetBeans isn't opening on Ubuntu 18.04JavaFX SDK 11 installation for new Ubuntu userWhich Version of Netbeans is more appropriate with JDK 10.0.1Issue with Ubuntu 18.04 and JavaFXJDK11 on Ubuntu 18.04Using OpenJDK and JavaFX for self-contained, modular packaging



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















I have Java 8 and Ubuntu 18.04. I'm using NetBeans and when tried to make some program, it couldn't be done because JavaFX is missing.



I installed Java JDK with NetBeans from Oracle's site and thought everything is included but obviously I didn't check it well.



What should I do, what should I install? I'm not so good at this and don't know if problem is with Ubuntu or Java. :(










share|improve this question




























    3















    I have Java 8 and Ubuntu 18.04. I'm using NetBeans and when tried to make some program, it couldn't be done because JavaFX is missing.



    I installed Java JDK with NetBeans from Oracle's site and thought everything is included but obviously I didn't check it well.



    What should I do, what should I install? I'm not so good at this and don't know if problem is with Ubuntu or Java. :(










    share|improve this question
























      3












      3








      3








      I have Java 8 and Ubuntu 18.04. I'm using NetBeans and when tried to make some program, it couldn't be done because JavaFX is missing.



      I installed Java JDK with NetBeans from Oracle's site and thought everything is included but obviously I didn't check it well.



      What should I do, what should I install? I'm not so good at this and don't know if problem is with Ubuntu or Java. :(










      share|improve this question














      I have Java 8 and Ubuntu 18.04. I'm using NetBeans and when tried to make some program, it couldn't be done because JavaFX is missing.



      I installed Java JDK with NetBeans from Oracle's site and thought everything is included but obviously I didn't check it well.



      What should I do, what should I install? I'm not so good at this and don't know if problem is with Ubuntu or Java. :(







      18.04 java jdk javafx






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 8 '18 at 15:56









      mariamaria

      141313




      141313




















          1 Answer
          1






          active

          oldest

          votes


















          5














          In the Ubuntu 16.04 and later default repositories JavaFX is packaged as a separate package named openjfx. To install it in Ubuntu 18.04, open the terminal and type:



          sudo apt install openjdk-8-jdk openjfx


          Check that JDK 8 is selected as the default Java version in Netbeans -> Tools -> Options -> Java -> Nashorn tab -> click the Manage Platforms button -> click the Add Platform button -> click the radio button marked Java Standard Edition -> click the Next button -> browse to /usr/lib/jvm/java-8-openjdk-amd64 and select it as the default Java version.



          Optionally you can install openjdk-11-jdk instead of or alongside openjdk-8-jdk. openjfx works with both openjdk-8-jdk and openjdk-11-jdk in Netbeans in Ubuntu 18.04. I am using Netbeans 8.2 10.0 in Ubuntu 18.04.






          share|improve this answer

























          • Thanks, your commands work but still with my java.io library I get the error Exception in thread "main" java.lang.IllegalStateException: Toolkit not initialized ...I don't know why

            – maria
            Nov 14 '18 at 17:49












          • @Mara I'm sorry, I found the error you got was in my JavaFX code because I didn't copy all the code to the end in Pastebin the first time that I uploaded it. I left out the two curly braces at the end the first time I uploaded it. I uploaded the code again here. The name of my JavaFX project in Netbeans is HelloWorldFX.

            – karel
            Nov 15 '18 at 0:26












          • JavaFX works for me on 18.04 only after installing JDK 8 AND changing the project SDK to 8 (doesn't want to work on SDK 10) in IntelliJ.

            – Line
            Feb 6 at 9:04











          • It must be a JDK paths issue in IntelliJ because JDK 8 and 11 both work alongside each other in Netbeans in Ubuntu 18.04 with the same JavaFX package for both of them.

            – karel
            Feb 6 at 9:27












          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%2f1091157%2fjavafx-missing-ubuntu-18-04%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









          5














          In the Ubuntu 16.04 and later default repositories JavaFX is packaged as a separate package named openjfx. To install it in Ubuntu 18.04, open the terminal and type:



          sudo apt install openjdk-8-jdk openjfx


          Check that JDK 8 is selected as the default Java version in Netbeans -> Tools -> Options -> Java -> Nashorn tab -> click the Manage Platforms button -> click the Add Platform button -> click the radio button marked Java Standard Edition -> click the Next button -> browse to /usr/lib/jvm/java-8-openjdk-amd64 and select it as the default Java version.



          Optionally you can install openjdk-11-jdk instead of or alongside openjdk-8-jdk. openjfx works with both openjdk-8-jdk and openjdk-11-jdk in Netbeans in Ubuntu 18.04. I am using Netbeans 8.2 10.0 in Ubuntu 18.04.






          share|improve this answer

























          • Thanks, your commands work but still with my java.io library I get the error Exception in thread "main" java.lang.IllegalStateException: Toolkit not initialized ...I don't know why

            – maria
            Nov 14 '18 at 17:49












          • @Mara I'm sorry, I found the error you got was in my JavaFX code because I didn't copy all the code to the end in Pastebin the first time that I uploaded it. I left out the two curly braces at the end the first time I uploaded it. I uploaded the code again here. The name of my JavaFX project in Netbeans is HelloWorldFX.

            – karel
            Nov 15 '18 at 0:26












          • JavaFX works for me on 18.04 only after installing JDK 8 AND changing the project SDK to 8 (doesn't want to work on SDK 10) in IntelliJ.

            – Line
            Feb 6 at 9:04











          • It must be a JDK paths issue in IntelliJ because JDK 8 and 11 both work alongside each other in Netbeans in Ubuntu 18.04 with the same JavaFX package for both of them.

            – karel
            Feb 6 at 9:27
















          5














          In the Ubuntu 16.04 and later default repositories JavaFX is packaged as a separate package named openjfx. To install it in Ubuntu 18.04, open the terminal and type:



          sudo apt install openjdk-8-jdk openjfx


          Check that JDK 8 is selected as the default Java version in Netbeans -> Tools -> Options -> Java -> Nashorn tab -> click the Manage Platforms button -> click the Add Platform button -> click the radio button marked Java Standard Edition -> click the Next button -> browse to /usr/lib/jvm/java-8-openjdk-amd64 and select it as the default Java version.



          Optionally you can install openjdk-11-jdk instead of or alongside openjdk-8-jdk. openjfx works with both openjdk-8-jdk and openjdk-11-jdk in Netbeans in Ubuntu 18.04. I am using Netbeans 8.2 10.0 in Ubuntu 18.04.






          share|improve this answer

























          • Thanks, your commands work but still with my java.io library I get the error Exception in thread "main" java.lang.IllegalStateException: Toolkit not initialized ...I don't know why

            – maria
            Nov 14 '18 at 17:49












          • @Mara I'm sorry, I found the error you got was in my JavaFX code because I didn't copy all the code to the end in Pastebin the first time that I uploaded it. I left out the two curly braces at the end the first time I uploaded it. I uploaded the code again here. The name of my JavaFX project in Netbeans is HelloWorldFX.

            – karel
            Nov 15 '18 at 0:26












          • JavaFX works for me on 18.04 only after installing JDK 8 AND changing the project SDK to 8 (doesn't want to work on SDK 10) in IntelliJ.

            – Line
            Feb 6 at 9:04











          • It must be a JDK paths issue in IntelliJ because JDK 8 and 11 both work alongside each other in Netbeans in Ubuntu 18.04 with the same JavaFX package for both of them.

            – karel
            Feb 6 at 9:27














          5












          5








          5







          In the Ubuntu 16.04 and later default repositories JavaFX is packaged as a separate package named openjfx. To install it in Ubuntu 18.04, open the terminal and type:



          sudo apt install openjdk-8-jdk openjfx


          Check that JDK 8 is selected as the default Java version in Netbeans -> Tools -> Options -> Java -> Nashorn tab -> click the Manage Platforms button -> click the Add Platform button -> click the radio button marked Java Standard Edition -> click the Next button -> browse to /usr/lib/jvm/java-8-openjdk-amd64 and select it as the default Java version.



          Optionally you can install openjdk-11-jdk instead of or alongside openjdk-8-jdk. openjfx works with both openjdk-8-jdk and openjdk-11-jdk in Netbeans in Ubuntu 18.04. I am using Netbeans 8.2 10.0 in Ubuntu 18.04.






          share|improve this answer















          In the Ubuntu 16.04 and later default repositories JavaFX is packaged as a separate package named openjfx. To install it in Ubuntu 18.04, open the terminal and type:



          sudo apt install openjdk-8-jdk openjfx


          Check that JDK 8 is selected as the default Java version in Netbeans -> Tools -> Options -> Java -> Nashorn tab -> click the Manage Platforms button -> click the Add Platform button -> click the radio button marked Java Standard Edition -> click the Next button -> browse to /usr/lib/jvm/java-8-openjdk-amd64 and select it as the default Java version.



          Optionally you can install openjdk-11-jdk instead of or alongside openjdk-8-jdk. openjfx works with both openjdk-8-jdk and openjdk-11-jdk in Netbeans in Ubuntu 18.04. I am using Netbeans 8.2 10.0 in Ubuntu 18.04.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 16 mins ago

























          answered Nov 8 '18 at 16:23









          karelkarel

          61.1k13132155




          61.1k13132155












          • Thanks, your commands work but still with my java.io library I get the error Exception in thread "main" java.lang.IllegalStateException: Toolkit not initialized ...I don't know why

            – maria
            Nov 14 '18 at 17:49












          • @Mara I'm sorry, I found the error you got was in my JavaFX code because I didn't copy all the code to the end in Pastebin the first time that I uploaded it. I left out the two curly braces at the end the first time I uploaded it. I uploaded the code again here. The name of my JavaFX project in Netbeans is HelloWorldFX.

            – karel
            Nov 15 '18 at 0:26












          • JavaFX works for me on 18.04 only after installing JDK 8 AND changing the project SDK to 8 (doesn't want to work on SDK 10) in IntelliJ.

            – Line
            Feb 6 at 9:04











          • It must be a JDK paths issue in IntelliJ because JDK 8 and 11 both work alongside each other in Netbeans in Ubuntu 18.04 with the same JavaFX package for both of them.

            – karel
            Feb 6 at 9:27


















          • Thanks, your commands work but still with my java.io library I get the error Exception in thread "main" java.lang.IllegalStateException: Toolkit not initialized ...I don't know why

            – maria
            Nov 14 '18 at 17:49












          • @Mara I'm sorry, I found the error you got was in my JavaFX code because I didn't copy all the code to the end in Pastebin the first time that I uploaded it. I left out the two curly braces at the end the first time I uploaded it. I uploaded the code again here. The name of my JavaFX project in Netbeans is HelloWorldFX.

            – karel
            Nov 15 '18 at 0:26












          • JavaFX works for me on 18.04 only after installing JDK 8 AND changing the project SDK to 8 (doesn't want to work on SDK 10) in IntelliJ.

            – Line
            Feb 6 at 9:04











          • It must be a JDK paths issue in IntelliJ because JDK 8 and 11 both work alongside each other in Netbeans in Ubuntu 18.04 with the same JavaFX package for both of them.

            – karel
            Feb 6 at 9:27

















          Thanks, your commands work but still with my java.io library I get the error Exception in thread "main" java.lang.IllegalStateException: Toolkit not initialized ...I don't know why

          – maria
          Nov 14 '18 at 17:49






          Thanks, your commands work but still with my java.io library I get the error Exception in thread "main" java.lang.IllegalStateException: Toolkit not initialized ...I don't know why

          – maria
          Nov 14 '18 at 17:49














          @Mara I'm sorry, I found the error you got was in my JavaFX code because I didn't copy all the code to the end in Pastebin the first time that I uploaded it. I left out the two curly braces at the end the first time I uploaded it. I uploaded the code again here. The name of my JavaFX project in Netbeans is HelloWorldFX.

          – karel
          Nov 15 '18 at 0:26






          @Mara I'm sorry, I found the error you got was in my JavaFX code because I didn't copy all the code to the end in Pastebin the first time that I uploaded it. I left out the two curly braces at the end the first time I uploaded it. I uploaded the code again here. The name of my JavaFX project in Netbeans is HelloWorldFX.

          – karel
          Nov 15 '18 at 0:26














          JavaFX works for me on 18.04 only after installing JDK 8 AND changing the project SDK to 8 (doesn't want to work on SDK 10) in IntelliJ.

          – Line
          Feb 6 at 9:04





          JavaFX works for me on 18.04 only after installing JDK 8 AND changing the project SDK to 8 (doesn't want to work on SDK 10) in IntelliJ.

          – Line
          Feb 6 at 9:04













          It must be a JDK paths issue in IntelliJ because JDK 8 and 11 both work alongside each other in Netbeans in Ubuntu 18.04 with the same JavaFX package for both of them.

          – karel
          Feb 6 at 9:27






          It must be a JDK paths issue in IntelliJ because JDK 8 and 11 both work alongside each other in Netbeans in Ubuntu 18.04 with the same JavaFX package for both of them.

          – karel
          Feb 6 at 9:27


















          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%2f1091157%2fjavafx-missing-ubuntu-18-04%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

          Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

          Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

          Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»