How To Install IntelliJ IDEA | Configure with JavaFX SDK and OpenJDK (2021)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
<b>Hi Everyone! I am going to show you how to Install Intellij</b> <b>then configure it with JDK15 along with JavaFX 15.</b> <b>Let's start with downloading the IntelliJ</b> <b>download</b> <b>and Scroll up</b> <b>click this Link</b> <b>just click this Link</b> <b>and</b> <b>click this Download button</b> <b>We are going to download the Community version</b> <b>I am using Apple macOS with intel chip</b> <b>just choose what correspond to your need.</b> <b>Now its downloading...</b> <b>Once Download completed, Right click to open </b> <b>there you go</b> <b>I will just drag this to install</b> <b>If you are using windows, just run the installer</b> <b>Now let's run IntelliJ, it should be here</b> <b>and here</b> <b>Just confirm if you agree and click Continue</b> <b>Here, Choose base on your personal preference</b> <b>Now we have IntelliJ, let's create a project and complete </b> <b>the configurations</b> <b>and we would like to encounter two common errors and fix </b> <b>them</b> <b>Click New Project</b> <b>Select JavaFX</b> <b>and By default there is no Project SDK set yet </b> <b>the good news is we can download JDK from here</b> <b>Select Download JDK</b> <b>The latest JDK is shown here</b> <b>also you have couple more options</b> <b>But We will use Oracle OpenJDK</b> <b>take note of this location, click Download</b> <b>Now Installing Open JDK 15.0.1</b> <b>once done just click Next</b> <b>Set the project name then click Finish</b> <b>there you</b> <b>this is your IntelliJ IDE </b> <b>In the Editor we have Main</b> <b>controller</b> <b>and fxml</b> <b>This is your Project Tool where you will find Controller, </b> <b>Main, and fmxl under Package sample</b> <b>We are going to click this Main.java Tab</b> <b>This will trigger the IDE to Analyze our code.</b> <b>there you go</b> <b>and you see, it is Analyzing...</b> <b>it will let us know if there is any issue or error</b> <b>and as you can see JavaFX and related keywords turned RED</b> <b>it means we have an error</b> <b>Well technically we can check it now base on Error Log</b> <b>But let's RUN this and see what we got</b> <b>so...</b> <b>so click this RUN</b> <b>There you go, we have an error, it says</b> <b>it says Package javafx.application does not exist</b> <b>well to be precise this is just one of couple of errors we </b> <b>got as you can see in the side.</b> <b>you have package javafx.fxml does not exist and so on</b> <b>OK,, These errors or error just telling you that you do not</b> <b> have any Javafx SDk configured yet</b> <b>To fix this, let's download Javafx SDK</b> <b>Javafx</b> <b>download</b> <b>here you go Click this JAVAFX</b> <b>and here Click Download</b> <b>perfect</b> <b>Just select the corresponding Javafx for your platform or </b> <b>OS, we are using JDK15 so I will</b> <b>pick the latest release which is 15.0.1 </b> <b>If you recall we just use JDK 15, right, here</b> <b>right</b> <b>here</b> <b>ok</b> <b>I am currently using macOS so this is what I will download</b> <b>If you are using Windows, just download the corresponding </b> <b>installer</b> <b>If you are using Windows, just download the corresponding </b> <b>SDK</b> <b>Now, let's check the downloaded file</b> <b>and we just need to Open this zip file</b> <b>unzip that, there you go</b> <b>we have this folder</b> <b>check this out, making sure we have the jars we need.</b> <b>base</b> <b>controls</b> <b>fxml</b> <b>lets configure this up</b> <b>Go to File > Project Strucuture</b> <b>As you can see here you have your Project SDK</b> <b>Isset to openJDK 15.0.1, that's very good</b> <b>now lets go to Module</b> <b>and</b> <b>click this Dependencies here</b> <b>see this? There you go</b> <b>Go here and Click Add</b> <b>JARs and directories</b> <b>there you go</b> <b>we are going to proceed to where you save the Javafx SDK</b> <b>and specify or select the JARs that we need</b> <b>and... lib</b> <b>so include this Base</b> <b>Controls, Fxml and Graphics</b> <b>that about it for now</b> <b>you can always add what you else need there</b> <b>alright, here just them out, check these</b> <b>and...</b> <b>We are going to click APPLY. </b> <b>Take note of the error in RED at the back</b> <b>and...</b> <b>there you go!</b> <b>It fix the issue or error.</b> <b>click OK</b> <b>Now it is fixed, let's Run and see what else</b> <b>Ok, We got a new Error</b> <b>It says JavaFX runtime components...</b> <b>missing and are required to run this application </b> <b>and</b> <b>We have this error because we have yet to specify what we </b> <b>require to run our code.</b> <b>What Javafx components we need</b> <b>this is directly tied up to the JavaFX SDK that we just </b> <b>added</b> <b>and give us clarity why we need them</b> <b>One way to resolve this is to add module-info.java</b> <b>so here...</b> <b>Right click and New > Module-info.java</b> <b>there you go</b> <b>We are going to specify what we requires</b> <b>Remember those JARs?</b> <b>so start with Graphics</b> <b>then controls</b> <b>and.... and... fxml</b> <b>this can be in any order so long you specify them here</b> <b>there you go</b> <b>and we are going to do OPENS</b> <b>we are going to specify the package name</b> <b>which is this 'sample' here</b> <b>and 'sample'</b> <b>alright! Lets run this and see what we got</b> <b>There you go!</b> <b>CONGRATULATIONS! We successully run our first JAVAFX code</b> <b>You are set!</b> <b>I hope you learn something. Thank you for watching!</b>
Info
Channel: tookootek
Views: 4,127
Rating: undefined out of 5
Keywords: intellij javafx, how to install intellij idea, intellij javafx setup, how to install intellij on mac, how to install intellij on windows, intellij idea tutorial, intellij idea configuration for java, intellij setup mac, intellij setup windows, intellij openjdk, intellij javafxsdk, javafx tutorial, javafx, javafx tutorial for beginners, install intellij javafx sdk, how to install intelliJ idea 2021, javafx 2021, javafx sdk 15.0.1, openjdk 15.0.1, intellij config, javafx config
Id: S6vBeCrdIHo
Channel Id: undefined
Length: 8min 26sec (506 seconds)
Published: Fri Jan 08 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.