Very helpful, even years after you originally created this video. I recently did a full update from my Linux Mint 18 system to Linux Mint 22. As a result, I needed to begin a setup of the system from scratch. (It was probably 5 or more years ago that the old configuration was done, and I basically had to reactivate brain cells that had not been used for that same period of time!) The old Netbeans was 8.2, and the corresponding SceneBuilder and other applications equally as old. This video helped tremendously to get Apache Netbeans, JavaFX, and the new SceneBuilder up and running. Thank you Dr. Baugh!
@mf883711 ай бұрын
Thank you so much for this video! We've been looking everywhere for help to get our JavaFX going. We really like your teaching style because you so patiently explain everything. You saved from us a world of agony as we worked so hard to not only figure this out, but to find someone who could walk us through it, including the red error on NetBeans that you showed how to get past. What a lifesaver!
@profjpbaugh11 ай бұрын
Happy to be helpful! :)
@theeverleinhour9616 Жыл бұрын
Hello! I usually don't comment but I really just wanted to say thank you so much, sir! It was such a relief to finally see my project run after a series of troubleshooting and asking around but not getting any progress either. I am currently a computer science student and your videos help a ton!
@profjpbaugh Жыл бұрын
I'm happy it helped! :)
@honk-2 жыл бұрын
casual flex, this guys my teacher
@pauloferreira40403 жыл бұрын
Great video. I appreciate the time you took to make it. To avoid retyping all that portion of code needed for every new JavaFXML project I have created a JavaFXML project (the one you have described here would do just fine) and use it as a template for new JavaFXML projects. When I need a new project I just right click on this template project and select the Copy option and use the Refactor option to change the current project name to a new one. Just my 2 cents for you guys.
@panostzakis69252 жыл бұрын
Paulo can you explain me the method to create a new project .with the easy way,,without all these steps
@marianarose86573 жыл бұрын
You saved my life. Please keep making videos.
@dhruvsompura54873 жыл бұрын
god bless u sir I was struggling with this since 5 hrs and finally u explained every single thing with perfect explanation thank u so much
@caramys223 жыл бұрын
Thank you Jonh. This has been the best and clearest tutorial on JavaFX and Scene builder I have seen so far. Thank you, GREAT JOB!!!!
@gfmoore5 жыл бұрын
This is fantastic. I tried using JavaFX years ago and I didn't have a clue and couldn't find much help especially with the errors, but not only has this video shown me how to get the newest (2020) Netbeans set up for JavaFX it's also taken me through the process and helped me understand what is going on. I can't thank you enough for your efforts on this. Cheers.
@profjpbaugh4 жыл бұрын
Glad that you found it useful! It was the culmination of weeks of frustration that my colleagues and I were experiencing. I pieced together parts of the puzzle I found around the Internet and previous experience and just put this together hoping it would save other folks some time. :)
@royals64133 жыл бұрын
I struggled, but it's working now ! Thanks a lot
@jiifox32454 жыл бұрын
Thanks, got it also working. I like the fact that you remind us about the open source issue (free version), not to use the wrong one.
@nicklandreth25275 жыл бұрын
Super detailed. You left no room for me to fail here.
@QWERTYKUS5 жыл бұрын
it really works now, can't believe it. Thank you John, saved my day :D
@profjpbaugh5 жыл бұрын
I'm very glad to hear it worked!
@VasilisChatzikostas2 жыл бұрын
Thank you man! Thanks to you I managed to create my first app and it works!
@mark9855-v1t4 жыл бұрын
Success! This was so much easier and faster than trying to decipher the docs. Thank you!
@profjpbaugh4 жыл бұрын
I'm so glad it was helpful! My colleagues and I spent many weeks plowing through the (largely insufficient) documentation, bits and pieces of information from various corners of the Web, and relying on our own knowledge and I finally had an "aha!" one day and got a systematic way of setting this up documented, so I thought I'd share with the world to save everyone a major headache! :)
@willyansantosmoreira72104 жыл бұрын
You are a expert, i would never have this figured out by myself! Thanks a lot!
@willyansantosmoreira72104 жыл бұрын
i did it with jdk 14 and open JavaFX 14 it worked nicely!
@profjpbaugh4 жыл бұрын
Glad I could help!
@amralmaqtry66224 жыл бұрын
@@willyansantosmoreira7210 excuteable jar in javafx 11 ,12 ,13 ,14 or larger kzbin.info/www/bejne/fqapgHZ7fc1rkMk
@panostzakis69252 жыл бұрын
thank you John appreciate your time ...Great job
@javanoob57345 жыл бұрын
Thanks for video, all about this topic I needed, clear explanations and easy to follow. Please, continue with good work.
@TheKundan1121 күн бұрын
Very helpful video. Thanks.
@Dante-ev2mh3 жыл бұрын
It worked finally! love you! ahah
@yutech20915 жыл бұрын
I was failed using Apache netbeans after installing, now I'm enjoying bcz of u! Thanks man, Also I shifted to eclipse installed it then I got the same issue , and decided to take a break for some months now for this am back, plz do the samthing to eclipse I love it so much
@akx_edits33743 жыл бұрын
this is exactly what i was struggling with omg
@thewhitewolf80092 жыл бұрын
hi There i am trying to convert my project in exe mode but facing a error Unable to create javax script engine for javascript in Javafx application can you please help me . i tried online coundnt get proper solution . Please help thank u
@javadmoghaddasi10812 жыл бұрын
veryyyy good❤
@Gnomebitten4 жыл бұрын
This video saved my bacon; much better than the attempts at tutorials my class tried to have us use.
@_Ahmed_154 жыл бұрын
Thank you! I've been struggling to get this setup for hours
@profjpbaugh4 жыл бұрын
Glad it helped! :)
4 жыл бұрын
Thanks for this video! :D
@QWERTYKUS5 жыл бұрын
in the java plattform manager i have jdk 13 and its selected as default, but when i want to create a javafx project i only can choose between java 1.7 and java 1.8. Because of that i get allways an error(52) if i want to start a created javafx app. how can i get from 1.8 to jdk 13?
@profjpbaugh5 жыл бұрын
Ah. If you follow the previous video (installing OpenJDK) and then this video, it should work.
@QWERTYKUS5 жыл бұрын
@@profjpbaugh I have. Twice.
@emkbacon3 жыл бұрын
Whenever I save the changes in SceneBuilder every time I click the .fxml file in netbeans it pulls up Scene Builder again and not the raw fxml code in NetBeans. Any fixes/suggestions?
@profjpbaugh3 жыл бұрын
Go under Tools --> Options --> Java, then under the JavaFX tab, you can select the home directory of Scene Builder (that's the folder it's installed in) - this should change that behavior.
@emkbacon3 жыл бұрын
@@profjpbaugh thank you! I finished my project 3. Time to zip and rip it
@estebanpiedrahita51995 жыл бұрын
thank my error was that when running my project javafx13 and jdk13 it was showing in execution but not showing the gui javafx i am resolving with adding to the method main of the class that calls Scene "launch(args)"
@thombar20064 жыл бұрын
Thank you very much, a really good job!
@amkfitz1535 Жыл бұрын
This worked, well done
@sahilshahane15474 жыл бұрын
thanks bro! Saved my Day!!!
@andresmanuel35754 жыл бұрын
What if Netbeans doesn't show me the JavaFX folder? I did everything correctly, whenever I try to create a New file -> Other
@profjpbaugh4 жыл бұрын
The part where I do the "faking out" NetBeans - you act like you're going to create a JavaFX project through Apache NetBeans, and then it will "activate JavaFX", and then you cancel. Then, you go back and create a regular Java app and add the JavaFX libraries.
@nilsholzer52783 жыл бұрын
Thank you, helped me a lot
@dkg49754 жыл бұрын
Please share what all to import in controller.java program since I am not getting make a controller option with my version of IDE 😢
@profjpbaugh4 жыл бұрын
If you're not getting the "Make controller" option, it is likely that you didn't follow the step related to "Creating a JavaFX project". It's the part of the video that I refer to "faking NetBeans out" - you start like you're going to create a JavaFX project using the Apache NetBeans project options, but then you cancel once it's done "Activating JavaFX". The part where you "activate JavaFX" is what seems to allow you to pick to "create controller". See if this fixes your issue. Also, just so I'm clear - you're using Apache NetBeans, correct? Which version? 11.2? 11.3?
@dkg49754 жыл бұрын
@@profjpbaugh Thanks a lot, your video was really helpful, I've got that option now,by the way I've got version 11.2. Thanks once again :)
2 жыл бұрын
Awesome video! Thank you!
@volcey51114 жыл бұрын
Error occured during initialization of boot layer java.lang.module.FindException: Module javafx.controls not found
@profjpbaugh4 жыл бұрын
Did you create the JavaFX global library, and then add it to the project? I'm not sure what your question is.
@stevenfraser18424 жыл бұрын
Thank you very much for this - JavaFX was doing my head in.
@edwardkostreski67334 жыл бұрын
Thank you thank you thank you. Now how do I add the javafx javadoc to apache netbeans ?
@claesblomquist35103 жыл бұрын
Great video. I've followed every step and everything seems to be ok, no syntax errors. But when I run the program I get this annoying message "exception in application start up method". Do you have a remedy for that. Thanks anyway.
@vigi864 жыл бұрын
Sweeeeet... Thanks John! Based on the comments, this seems promising. Need to try that out.
@marymsoo36094 жыл бұрын
thank you this was very helpful.
@kayumaz7484 жыл бұрын
how do i add a new platform so i can use Javafx application in new projects and not use this everytime!?
@jasonchoquecanaviri46664 жыл бұрын
someone know how to make it executable, plis
@profjpbaugh4 жыл бұрын
Make what executable? You can make a .jar file - is this what you are referring to?
@ernanfer23 жыл бұрын
thank you good men, steps easy....
@beatrax80064 жыл бұрын
it really worked thanks john!
@swapnilnagtilak18615 жыл бұрын
Thanks that solved problem I had been facing java.lang.module.FindException: Module javafx.controls not found
@4321teodor4 жыл бұрын
Thank you very much it finally works thanks to you
@parkjeongbak66785 жыл бұрын
Hi, may I ask is there a plugin for javafx13 and apache netbeans 11.2 for printing invoice? Cause I cant install IReport and JasperReport. Please help me. Thank you!
@profjpbaugh4 жыл бұрын
I'm not personally very familiar with that software - are you getting a specific error?
@parkjeongbak66784 жыл бұрын
@@profjpbaugh cant install the plugin ireport on Apache Netbeans.
@QWERTYKUS5 жыл бұрын
how comes you type "psvm" and "public static void main" pops out?
@profjpbaugh5 жыл бұрын
It is an auto-complete option / shortcut that is built in to Apache NetBeans. You type psvm and hit tab and it autogenerates the skeleton of the main method.
@QWERTYKUS5 жыл бұрын
@@profjpbaugh what key is that?
@profjpbaugh5 жыл бұрын
@@QWERTYKUS I'm not sure I understand your question. The psvm stands for public, static, void, main. But it's like autocorrect in say, Microsoft Word. E.g., if you type "teh" it automatically changes to "the". Similarly in Apache NetBeans, if you type "psvm", it changes to the full return type, signature and empty body of the Java application entry point, the main method.
@QWERTYKUS5 жыл бұрын
@@profjpbaugh okay. But it don't changes nothing automatically. Maybe false configuration?
@profjpbaugh5 жыл бұрын
@@QWERTYKUS I'm still not sure what you are asking. You type the letters "psvm" and then press the Tab key and it fills in the main method skeleton. This is automatically set in all versions of Apache NetBeans that I have used. :)
@GarageScience4 жыл бұрын
This was the VM Option I had to add to get my system to work: "--module-path "C:\Users\samuel\Documents\JavaFX\javafx-sdk-14.0.1\lib" --add-modules=javafx.controls,javafx.fxml"
@senzomanjawira33185 жыл бұрын
Great stuff, ye am stuck on making controller. it doesn't show option of making controller when I right click to make controller
@profjpbaugh4 жыл бұрын
The way I've found around this, is you "pretend" you're going to make a JavaFX application through Apache NetBeans itself (using their techniques), and when it activates JavaFX, you then just back out and use my techniques to ensure the open JDK is used, and you will see the Controller option among other things (like FXML files being an option for file types).
@chintamalli6954 жыл бұрын
could you make a video for MacBook user, Its bit complicated it seems, Thanks in advance
@VasilisChatzikostas2 жыл бұрын
Hey man, I am the same guy as before but I have an issue which is driving me crazy. I can't fix it for some reason. For the past few weeks I have been working with javafx on netbeans like you do and I even made a working calculator. Our teacher asked us to make a java with maven project. I tried it. Couldn't figure it out and I went back to java with ant. But now I get a major error. "Cannon access java.lang" ,"Unable to find package java.lang in classpath or bootclasspath". I tried un-installing the program and installing it back, I tried going to ...../netbeans/etc and changing the netbeans conf file homepath to the java one, to the sdk one but all of them failed. Every project that worked now doesn't for some reason. If you could help me out it would mean the world to me since I have a project for university that I need to do. Thank you!
@profjpbaugh2 жыл бұрын
Since java.lang is the primary package (which is included implicitly when you create a Java program), my suspicion is you somehow removed the reference to the JDK itself. Or, maybe you're using an incompatible version of the JDK? When you right click the project and go to the properties, what version of Java is it using? If you're using the netbeans.conf file, are you sure the JDK and NetBeans are on the same drive? I found some squirrely behavior at one point related to that. Are you on Windows?
@VasilisChatzikostas2 жыл бұрын
@@profjpbaugh thank you man for your reply! I am using Netbeans 12.5 ( for the university project, they ask for that specific version ) and I am using JDK 18. I am on windows 10 and that's the conf path "netbeans_jdkhome="C:\Program Files\Java\jdk-18.0.1"". Like I said the program was running fine until I tried java with maven, that screw everything up
@profjpbaugh2 жыл бұрын
@@VasilisChatzikostas Couple questions: 1.) Are regular Java Applications (e.g., "Hello world!" console app) using Ant failing also, or just JavaFX? 2.) So you created an Ant project and used JavaFX, and it worked, THEN you tried using Maven with JavaFX, and it failed, and now you switched back to Ant, and it's failing? I'm just trying to understand the problem better.
@VasilisChatzikostas2 жыл бұрын
@@profjpbaugh You understood correctly. Everything you said on 2 is correct. As far 1 is concerned yeah it's failing on the simpliest app. btw I went to a friend's house a few hours ago and finished the project since I wasn't able to fix the issue. Thank you tho man so much for your help. Really appreciate it!
@profjpbaugh2 жыл бұрын
@@VasilisChatzikostas As a sanity check, make sure your JDK is actually located where you told it (in the config file). Maybe set an environment variable JAVA_HOME to the location of the JDK and then re-launch NetBeans. (If you're unfamiliar with setting environment variables, you just search for "environment variables" using the Windows search near Start and then Edit Environment Variables. Add it as a system variable. So, the name of the variable would be JAVA_HOME, and C:\... or wherever the location of your JDK is, would be the value. I'm wondering if it's using the config file or maybe the environment variable is overriding it.
@isaiahjacob72545 жыл бұрын
John you are good
@jimburke97044 жыл бұрын
It's rare people like John who selflessly contribute so much to software development. I hope that you get some reward from the many positive comments. Respect and thank you.
@flutterquick3 жыл бұрын
thankyou man 😍😍
@mesabo9115 жыл бұрын
You are the best !
@die_cac37524 жыл бұрын
life saver
@xilioxilione92424 жыл бұрын
Ottimo lavoro.
@profjpbaugh4 жыл бұрын
Grazie!
@weachris74124 жыл бұрын
DUDE THANKS
@javosoft53585 жыл бұрын
Hi John ! Nice video, many thanks sharing your knowledge ! But how could i add the JAVAFX Javadoc on netbeans ? I am tired using external browser and it took me hours searching the web for a solutions, but i only found a few bug reports with no solution to fix it. And you also did not show how to activate the Javadoc in this video. Do you have an solution on hand for Netbeans ? I finally switched to IntelliJ, here i was able to activate the Javadoc for FX, but i am really missing the easy "Make Controller" functionality, its not implemented in IntelliJ :-/ Greetings Timo
@jimburke97044 жыл бұрын
John, first of all many thanks for contributing your excellence - it clearly has helped many coders such as me. I have a NetBeans problem and I'm hoping that you can shed some light. I have installed the latest version plus Java V14 libraries, and got the HelloFX demo working. Now I want to run this on a Raspberry Pi (running Debian) on which I have installed what I believe to be the most up-to-date Open libraries (jdk & jfx). When I create a Java Platform for the Pi, it tests fine. But when I try to point the project's Run at it, the new platform simply does not show in the Platform dropdown. Any ideas ?
@profjpbaugh4 жыл бұрын
Let me understand correctly - where do you have Apache NetBeans installed? On your (Windows?) PC? Or on the Raspberry Pi? What do you mean by, "... try to point the project's Run at it..."? What is "it"? The Apache NetBeans' Run options doesn't list something? The project you're working on, etc.?
@jimburke97044 жыл бұрын
@@profjpbaugh NetBeans is installed on my laptop, running Windows 10. I have your example project "HelloFX" running on it. Locally it runs fine. I have set up a Java Platform "pi" in NetBeans pointing to the remote Raspberry Pi machine (ie. IP, login credentials,...). I want to run the same JFX program on there. In the Project Properties Run category I try to specify the Runtime Platform as "pi" but that simply does not appear in the dropdown. Four years ago I did a fairly major development using these platforms. I developed remotely using NetBeans and deploy to the pi. Recently I have taken this up again for a different project but it seems that a lot of water has passed under the bridge since then !
@jimburke97044 жыл бұрын
John - It would appear that your (excellent) project setup "localises" NB. That is, the setup may preclude a remote connection. The reason I say this is that before running your setup from scratch (ie. fresh install of V12), with NB V11 I did get a small Java app working remotely on the Pi. In addition, I have two differently-configured Pi's - I have tried both. I have set up remote platforms for both, and both test OK. I believe NB does a 'probe' on the remote platform - this seems to work fine as there is no error message. I have logged a support ticket with Apache. I just wish I could find some statement which explains why NB will pre-filter a project's Runtime Platform dropdown.
@jimburke97044 жыл бұрын
John. I have got a bit further. In Project Properties -> Sources -> Source/binary format dropdown, if I change this to JDK11 then my Java platforms now appear in the dropdown in the Run category ! Still doesn't work, but NB deploys to the Pi and tries to fire up the jar file. Bit further.
@jimburke97044 жыл бұрын
Got there. 1. The JDK version MUST match up with the version installed on the Raspberry pi. 2. The X Server must be running, and the DISPLAY environment variable declared (DISPLAY=:0). Other than all that, piece of cake ! Jim
@JasonJason2103 жыл бұрын
Great tutorial although it's pretty sad we have to go through all those hoops just to do something that we could do with a couple of clicks in Java 8.
@profjpbaugh3 жыл бұрын
They are improving the software, so hopefully it is / will quickly become super easy to use the open source OpenJDKs soon enough. I haven't explored it much lately, but I suspect it's definitely better than when I created this video. I'll hopefully be checking it out again soon. :)
@hot_coffee_guy2 жыл бұрын
Thank you , I was lost
@Skyfauer4 жыл бұрын
Спасибо большое, Джон! Теперь у меня всё работает. It works if you specify in the options like this: --add-modules = javafx.controls, javafx.fxml
@profjpbaugh4 жыл бұрын
Пожалуйста
@claudiozimmermannjunior91184 жыл бұрын
Thank you bro, when you get married, the woman will be yours.
@mateusg54503 жыл бұрын
A way to fix the error that when trying to enter javafx in the current netbeans once and for all and without doing these maneuvers is quite simple. You have to download these 3 programs: Current Apache Netbeans - Java kit jdk version 8 w / netbeans (this version already comes with netbeans + JAVAFX embedded in it) -scenebuilder. First install the JDK normally. then you install Apache netbeans (yes you will have both versions of netbeans, a new and old), at the time of installation it will recognize the JDK 1.8 folder (which already has the embedded javafx) and do the installation normally. Then scenebuilder is installed. Open apache netbeans and you will see that the error in javafx will no longer occur. From Brazil. Enjoy.
@profjpbaugh3 жыл бұрын
Yes, if someone wishes to use the Oracle version of the JDK, then it is now straightforward. But, if you create commercial software, Oracle can sue you if you don't pay their monthly fee. It's not particularly expensive, but it's more the principle that Java has been free for almost 30 years, and now Oracle has decided to monetize it.
@luizfernandoareas254 жыл бұрын
Thank you!
@cassiomendonca4834 жыл бұрын
John, first of all, congratullations for this explanation. It really helped me. Now, after following successfully the steps and created my helloFX project, I've created my distribution file clicking on the "Clean and build the project". It created a *.jar file, but when I double click on it, nothing happens. Do you have any clue to me? I have installed the JRE Version 8 Update 241 on Windows10
@muzamilmehmood13984 жыл бұрын
yeah my application runs pretty smooth with no errors or warnings in IDE but i am unable to run directly or from cmd. Can you run the application from cmd and see what error you get? i get "JavaFX run time components are missing and they are required to run this application" if you find any fix let me know as well i'd appreciate it
@profjpbaugh4 жыл бұрын
Where is the default Java (java and javac) directory, such as JAVA_HOME in the environment variables? Is it in a Java 8 installation? Or do you have the JAVA_HOME set to Java 13 or 14, etc.? There is a java.exe under wherever you install the JDK 13 or 14, etc. Have you tried it with that?
@muzamilmehmood13984 жыл бұрын
@@profjpbaugh i set up my default JAVA_HOME directory in environment variables pointing towards java 13 or 14. But still the jar file in my distribution folder wont work. Its been a week now im implementing the same project in C#. Are you able run your javafx project from distribution folder? If yes then maybe we are doing sth wrong. But they have made things too much complicated since java 8.
@profjpbaugh4 жыл бұрын
@@muzamilmehmood1398 Is there a specific error either of you are getting when you double-click the jar file? Or is it just not doing anything at all?
@muzamilmehmood13984 жыл бұрын
@@profjpbaugh it was not doing anything at all but then i ran the program through cmd and there was an error which said "javafx run time components are missing and are required to run this application". Several people got this error when they were running their program in IDE and they have forgot to set module path and VM options but for me module path and VM options are already configured and i have included all the dependent libraries and i have no issue in running the application inside the IDE. On Openjfx website they have already addressed this error. To fix this error you either have to add javafx.graphics on module path or you have to set another main class for project which does not extends javafx.application.Application. Here is the link if you wanna see that error yourself: openjfx.io/openjfx-docs/ Even after the configuration of a dummy project(which has just "click me" button) wont work outside the IDE and it will run absolutely fine inside IDE. Same thing goes for my actual project.
@Remix20174 жыл бұрын
Thanks a lot
@isaiahjacob72545 жыл бұрын
i will like to learn more from you
@dashknow50824 жыл бұрын
Pretty pretty good tutorial,deserve a like and subscribe from me, Hope you continue to help other novice coder like me
@germanfakin20323 жыл бұрын
Спасибо.
@hamzaebarmaki21924 жыл бұрын
thank you شكرا
@radoiflorin5 жыл бұрын
John Baugh 666 de abonați i will break this fking number! :))))
@marleneacpsouza4 жыл бұрын
16:50
@profjpbaugh4 жыл бұрын
Did you have a question about the content at that time stamp? :)
@itsyaboipandaz4 жыл бұрын
Le Panda est arrivé Je suis une petite fille, où est la salle de bain?
@profjpbaugh4 жыл бұрын
It's closed.
@vodanh13703 жыл бұрын
giai thich dai dong vl
@patihgenixscoding69142 жыл бұрын
life saver
@claesblomquist35103 жыл бұрын
Great video. I've followed every step and everything seems to be ok, no syntax errors. But when I run the program I get this annoying message "exception in application start up method". Do you have a remedy for that. Thanks anyway.
@profjpbaugh3 жыл бұрын
What is the Exception you are receiving? A little more information might help out. :)
@claesblomquist35103 жыл бұрын
@@profjpbaugh I get "exception in application start method".