Installing Apache NetBeans 11.2 and configuring with OpenJDK 13

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello this is dr. John Vaughn and I'm going to be teaching you in this first video how to get Apache NetBeans setup with the open-source version of the JDK and JavaFX as well as scene builder so the first thing we need to do is we need to download the open JDK Oracle does release different versions of JDK but currently they're trying to well have commercialized version 1.8 of the JDK or what we call Java 8 so some software like Apache spark and things like that you might use for data science require Java 8 so there's really not any way around it and Oracle claims that if you don't use it for commercial purposes you're not going to be in trouble however if you decide to make any kind of money you have to purchase a commercial license from Oracle now at this point the commercial license isn't particularly expensive however in some ways I think that this kind of violates the spirit of what Java was originally developed for so we're gonna use all open source versions of everything and it actually will function better in the long run NetBeans as of this recording just released 11.2 Apache NetBeans 11.2 which does have the ability to create or so it seems a Java FX application however it's using an older version of Java FX and it's also using the 1.8 version of the JDK it does not work with any of the open JDK s so I'm gonna recommend that we use all the open source versions so first things first is we're going to download the open JDK so you can look for open JDK and as soon as you do that you should be able to find it off of Oracle's site there's actually a little says download here and then there's JDK java.net slash 13 and you'll notice that we have Windows 64 this is commercial builds are available from Oracle for a non open-source license those are the ones you have to generally you'll pay for commercial support for it but here this is the open source version here so we'll get the Windows version now you could pick your version of choice depending on your platform as well but I'm going to download the Windows 64 version of the open JDK 13 so that's going to take a few seconds while we wait on that the next thing we can start searching for is the open JavaFX and if you look there it's at open jfx dot io and you can go down here and there's actually a a download that will appear here download option right here you go there and it takes you to the download page now you need to be very careful when we do this so the version of the JDK that we download is 13 so there's a minor point release of or patch release of one so that's okay but the major version is 13 that means that the JavaFX version has to match so when I click this download it takes me to the JavaFX do not download at least currently the version that is appearing under the LTS or long term support is 11 point zero point two this is the one everyone gets trigger-happy and they just click download and you know call it a day this is not gonna work properly well it looks like I got trigger-happy and clicked it but this is not the one we want though so we've downloaded the JDK we're gonna download latest release not early access builds we want the version to match so it's thirteen point zero point one and there are two different windows versions two different Mac's two different Linux and then there is documentation we're going to download the version for Windows SDK I'm gonna hit download so the download has started it says we've got about 17 seconds left so that'll be the start of that the next thing is under glue on since we're already on gluons website we might as well go find scene so there's scene builder you can download and install scene builder I already have it installed so I'm not gonna go to the trouble of showing how to do that it's literally a no-brainer you'd literally just download it and go through the Installer the other ones they're not quite as easy so that's why we're not doing that but right here if I go to the little arrow here and show in folder since I'm in Chrome it'll be slightly different in others such as Firefox so right here you see the open GFX and open JDK make sure they were both 13 the other thing I'm going to do and we also have the Apache installer from a previous thing that I downloaded but we'll worry about that in a second if I grab this these two I'm going to cut them and I actually have created on my C Drive and it will actually under documents I am going to create a folder called Java stuff I don't like putting spaces in things like this because there are some pieces of software that don't work very well with path names and have spaces you can put this really anywhere you want I would not recommend putting it on your desktop but dr. John document seems to be a good place to put it so I go in here and what I'm going to do is I'm going to paste both of those zip files now I'm going to extract the JDK right click extract all so the open JDK so that one's going to take a little bit of time not too long though in a few seconds and when this is done we're going to be able to also extract the open J effects so then we'll have both the open JDK as well as open GFX so this is very fast it's hung up on something mm-hmm there we go okay that took long enough all right so it's finishing up what it has to do apparently had a large portion to extract and that took a couple extra seconds the next thing we're going to do is we're going to extract the open jfx so we'll just wait for this to complete and then we should be good to go all right here we go good okay so it has shown what's in there and we have the folder named the same as the JDK full zip file now we're gonna do the same thing with the JFX open GFX I make sure that uncheck that so we don't get a pop-up okay so this is extracting this one's probably gonna be a lot faster because it's not as big as the whole JDK it's just additional libraries so there's kind of an annoyance going on right now in the java community and one of the big things is that obviously Oracle's commercializing the 1.8 version of Java and people have been kind of waiting on to try to make money off of job anything they purchase so that's been a little bit of a bummer lately but other things have been a problem also so NetBeans became or went under the control and development of the Apache foundation so that's not a bad thing it just changed things the other thing is JavaFX went under the company our organization glue on that creates scene builder so now they're responsible for maintaining glue on so now instead of having everything cohesive you've got everyone working on all these different little locations all over the place different companies and it's hard to get everything integrated so I'm gonna delete both zip files and leave the folders that I have created under the JDK there's actually just a folder JDK 1301 you can just leave it as is right now it doesn't really matter but I like cutting it from here and pasting it up one level and then deleting the old folder it lived in just because it's an extra layer we don't have to worry about and then the JFX same thing cut the folder inside of it go up a level paste it and then delete the old folders and I've got Java FX SDK 1301 and JDK 1301 this is the open source version because we know we downloaded it from there and I've already got scene builder installed so now the next thing for setup is we need Apache NetBeans so under the NetBeans dot apache org and i go to that website seems to be quite busy right now there we go and now we're going to go under downloads now we're going to be careful as of this recording we have the apache that means 11 feature update 2 so that's mb 11 point 2 they go to download and right here you'll notice there are binaries source and installers we're going to use the installer for Windows and be careful there don't just right-click and try to save it because it actually takes you to a new page and now here you can pick a mirror site that is close to you since I'm in the Southeast Michigan there's the FTP Wayne Edie you can just do a ctrl F and find something close to you possibly or just kind of look through and see if you find something interesting I'm going to download this from Wayne State University which is in Detroit very close less latency from say downloading it somewhere in California or Germany or something so it's downloading Apache NetBeans and we'll give that a few seconds and once that's done we'll set it up and make sure that it's pointing to the correct version of the JDK okay there we go okay so once you want the Installer it behaves like any other installer it'll say welcome to the Installer and it'll ask you about different other stuff you might need it'll tell you you can customize stuff you can accept the Terms of agreement hit next and then you can tell it where the JDK is that you want to use now it's going to install JDK 1.8 or can install JDK 1.8 but you can tell it to use a different JDK so I'm going to tell it to use the one that I have under documents and then under well we got to make sure it's under the right document so we're going to do windows users and then I've got my this one right here documents Java stuff and then other JDK 13 so I pointed to that one hit next tell it to check for updates and hit install so I'm telling it instead of using the 1.8 I'm telling it to use the version 13 that we just installed so this one's probably going to take longer than some of the others but it's still not too bad that just takes maybe a couple minutes so well that's faster than I expected thank goodness for solid-state drives and a lot of memory so it may take a little bit longer on your system depending on how much memory you have and your processor and the age of your computer etcetera so once this installs we'll be able to create any kind of default on the application which would be nice we'll give it a little test to make sure we can create a basic java application and then we'll come back and I'll do another video related to specifically giving JavaFX working okay so it's checking for updates making sure that we're up to snuff on the most recent version and then he can't plugins it'll say success okay now it's installed so now I'm gonna actually search for it and you'll notice it's now available thank you try picked the right one that's the Installer again I'm going to go to the app this is a settings created by previous one that's because I had 11.1 installed before I'm gonna hit no because I'm giving it a fresh install and here we go there is and that means 11.2 I'm gonna create a brand new Java project just to make sure this works I'm going to use Java with ant and click Next on that and it does the first time it'll possibly say it's activating features or it might give you a kind of a blank screen for a little bit but then yeah right here so it says download and activate make sure it has the run time it will download what's called the Java FX implementation for Windows and NB Java C Java editing support library but this is may not work exactly the way you expect and also it's going to be it wants to use 1.8 so we're gonna have a little bit of a disagreement on that let's see if this works okay and hit finish it'll activate and then you can create a basic application I'm just gonna call this hello NetBeans and I usually unchecked my main class here and hit finish and then you can actually look in the library and see that it has JDK 13 installed rather than eight if I create a nice new class default we're just going to call it hello world the name of the class and that's an extremely small font so you can change your font settings under tools options and then fonts and colors and I'm gonna change the size to say maybe eighteen or something because of the resolution here and public static void main oh that's nice came back up okay yeah a couple more times yeah let's have fun okay Arial a little world there we go and we'll run this sucker and see if it works and it did so right down here we've got our output as expected so that's pretty much all we need us pros the initial setup what's the next video in order to install and configure the JavaFX so I'll see you there
Info
Channel: John Baugh
Views: 9,606
Rating: undefined out of 5
Keywords: apache, netbeans, openjdk, jdk, 13, java
Id: BMUOp6gl_nE
Channel Id: undefined
Length: 16min 35sec (995 seconds)
Published: Wed Nov 06 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.