Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,099 --> 00:00:03,679
hey what's going on everybody it's you
bro hope you're doing well and in this
2
00:00:03,679 --> 00:00:08,460
video i'm going to explain how we can
install
3
00:00:08,460 --> 00:00:25,650
and set up java fx for eclipse so
sit back relax and enjoy the show
4
00:00:25,650 --> 00:00:29,190
if you wouldn't mind please like comment
and subscribe
5
00:00:29,190 --> 00:00:47,100
one like equals one prayer for the
youtube algorithm
6
00:00:47,100 --> 00:00:51,890
all right people so i have listed seven
steps which we need to follow in order
7
00:00:51,890 --> 00:00:55,499
to get
java fx up and running so i'll include
8
00:00:55,499 --> 00:00:59,379
these steps in the description down
below as well as any relevant links so
9
00:00:59,379 --> 00:01:03,800
be sure to look in the description
all right people step one is to download
10
00:01:03,800 --> 00:01:08,240
the java fx
sdk you can just google this java fx
11
00:01:08,240 --> 00:01:14,390
then go to the first link
this is the url open jfx dot io
12
00:01:14,390 --> 00:01:17,430
so on this webpage scroll down to
getting started
13
00:01:17,430 --> 00:01:21,219
then go to visit and then select the
correct
14
00:01:21,219 --> 00:01:26,009
java fx version for your ide
in this video we're covering eclipse but
15
00:01:26,009 --> 00:01:31,170
we'll cover intellij idea next
so java fx and eclipse then go to
16
00:01:31,170 --> 00:01:37,920
non modular from ide and click
this link javafx sdk this should bring
17
00:01:37,920 --> 00:01:44,340
you to another web page
gluonhq.com products javafx
18
00:01:44,340 --> 00:01:49,960
scroll down to latest release and select
the correct sdk for your operating
19
00:01:49,960 --> 00:01:52,990
system i'm running windows so i'm going
to select
20
00:01:52,990 --> 00:01:59,939
java fx windows x64 sdk
and click download now you should have
21
00:01:59,939 --> 00:02:04,179
a zip file so what i'm going to do is
extract this by right clicking on this
22
00:02:04,179 --> 00:02:07,619
file
then go to extract all and you'll want
23
00:02:07,619 --> 00:02:10,750
to extract this to a location that
you'll remember
24
00:02:10,750 --> 00:02:13,850
i'm just going to keep this my downloads
folder and
25
00:02:13,850 --> 00:02:18,920
click extract then give it a minute
well my file is now extracted so
26
00:02:18,920 --> 00:02:22,690
remember the location of where you
extracted this file to
27
00:02:22,690 --> 00:02:26,390
because that's going to be important
later step two is to install the
28
00:02:26,390 --> 00:02:29,720
javafx plugin and we can do so by going
to
29
00:02:29,720 --> 00:02:37,200
help eclipse marketplace
we are going to find f x
30
00:02:37,200 --> 00:02:46,420
go and we are looking for
e f x clips click install
31
00:02:46,420 --> 00:02:49,650
read the license agreement yes i
actually did read it that fast
32
00:02:49,650 --> 00:02:54,370
i accept the terms of the license
agreements and finish
33
00:02:54,370 --> 00:02:57,330
you may need to restart eclipse so
that's unfortunate
34
00:02:57,330 --> 00:03:01,350
step three let's create a new java fx
project
35
00:03:01,350 --> 00:03:09,050
let's go to file new project
javafx javafx project
36
00:03:09,050 --> 00:03:15,510
next we need a name for this project
i will call this hello fx but call it
37
00:03:15,510 --> 00:03:19,660
whatever you want
and then finish within my package
38
00:03:19,660 --> 00:03:24,740
explorer i now have
a javafx project which i called hellofx
39
00:03:24,740 --> 00:03:28,410
if i were to open this within my source
folder
40
00:03:28,410 --> 00:03:32,300
and within the application package i
have two files
41
00:03:32,300 --> 00:03:38,520
a java file called main as well as a css
file called application for some css
42
00:03:38,520 --> 00:03:41,980
styling
this main java file has some pre-written
43
00:03:41,980 --> 00:03:46,280
code to create a
basic window for us however we first
44
00:03:46,280 --> 00:03:51,370
need to create and set a user library
that contains the executable jars that
45
00:03:51,370 --> 00:03:54,830
we downloaded from that sdk
you can see that if we try and run this
46
00:03:54,830 --> 00:03:59,720
currently we have all of these warnings
if i were to attempt to run this we're
47
00:03:59,720 --> 00:04:02,560
going to run into an
issue error occurred during
48
00:04:02,560 --> 00:04:07,860
initialization of boot layer
module javafx controls not found
49
00:04:07,860 --> 00:04:11,220
to resolve this issue we need to create
and set
50
00:04:11,220 --> 00:04:15,340
a user library step 4 is to create a
user library
51
00:04:15,340 --> 00:04:23,090
let's go to window preferences
then under java go to build path
52
00:04:23,090 --> 00:04:27,870
user libraries
let's pretend that this wasn't here so
53
00:04:27,870 --> 00:04:33,060
let's remove that go to
new we need a user library name let's
54
00:04:33,060 --> 00:04:37,740
call this
java fx select ok
55
00:04:37,740 --> 00:04:41,790
add external jars what we're doing now
is looking
56
00:04:41,790 --> 00:04:46,370
for that sdk that we extracted so
remember that location of where you
57
00:04:46,370 --> 00:04:49,190
extracted
those files to for me that's under
58
00:04:49,190 --> 00:04:55,820
downloads
here it is then go to javafx sdk
59
00:04:55,820 --> 00:04:58,680
then under the library folder i'm going
to
60
00:04:58,680 --> 00:05:05,720
select all of these executable jar files
open apply and close
61
00:05:05,720 --> 00:05:11,830
step five is to set the library
right click on your javafx project
62
00:05:11,830 --> 00:05:17,690
folder
then go to build path add libraries
63
00:05:17,690 --> 00:05:23,310
user library next select
java fx finish
64
00:05:23,310 --> 00:05:27,630
and you did everything right all of
those red warnings should go away
65
00:05:27,630 --> 00:05:31,760
step six let's configure the build path
right click on your project folder
66
00:05:31,760 --> 00:05:36,650
go to build path configure build path
all we're doing is making sure that we
67
00:05:36,650 --> 00:05:40,400
have
java fx under class path if you're
68
00:05:40,400 --> 00:05:44,310
missing this for some reason
let's say we remove this well we can add
69
00:05:44,310 --> 00:05:48,880
that back
by going to class path add library user
70
00:05:48,880 --> 00:05:52,889
library
next check java fx finish
71
00:05:52,889 --> 00:05:57,050
so you'll just want to be sure that you
have javafx underneath classpath if you
72
00:05:57,050 --> 00:05:59,010
already have it there's nothing more
that you need to do
73
00:05:59,010 --> 00:06:02,450
apply then apply and close step seven is
to add
74
00:06:02,450 --> 00:06:06,610
virtual machine arguments we need to
copy a line of text
75
00:06:06,610 --> 00:06:10,669
from that webpage where we downloaded
the java sdk
76
00:06:10,669 --> 00:06:14,639
so this is the url under java fx and
eclipse
77
00:06:14,639 --> 00:06:18,240
under the subcategory of non-modular
from ide
78
00:06:18,240 --> 00:06:21,950
scroll down to the section regarding
adding vm
79
00:06:21,950 --> 00:06:25,210
arguments there are two lines of text
one if you're using
80
00:06:25,210 --> 00:06:30,650
linux or mac copy this line of text
if you're using windows copy this other
81
00:06:30,650 --> 00:06:33,610
line of text
i'm running windows so i'm going to copy
82
00:06:33,610 --> 00:06:36,050
this line of text
i'll also include these in the
83
00:06:36,050 --> 00:06:39,050
description down below for this video so
you don't have to navigate to this
84
00:06:39,050 --> 00:06:41,840
webpage
since i'm a nice guy so once you copy
85
00:06:41,840 --> 00:06:46,060
this line of text
let's head back to our ide now to add a
86
00:06:46,060 --> 00:06:50,050
virtual machine argument
right click on your project folder then
87
00:06:50,050 --> 00:06:54,570
go to
run as run configurations
88
00:06:54,570 --> 00:06:58,110
make sure that your project is selected
if not you can select it on the left
89
00:06:58,110 --> 00:07:02,690
hand menu here
under the arguments tab go to vm
90
00:07:02,690 --> 00:07:05,180
arguments
and paste all of that text that you
91
00:07:05,180 --> 00:07:09,100
copied but there's going to be
one change that we need to make to this
92
00:07:09,100 --> 00:07:13,290
we need to change
the path to the library folder of the
93
00:07:13,290 --> 00:07:16,110
sdk
that we downloaded so we'll need to find
94
00:07:16,110 --> 00:07:21,949
that locate where you extracted
that java sdk folder to
95
00:07:21,949 --> 00:07:25,680
locate the library folder and then i am
going to
96
00:07:25,680 --> 00:07:28,650
get this file path i'm going to right
click
97
00:07:28,650 --> 00:07:34,590
then copy address everything within the
quotes i'm going to delete
98
00:07:34,590 --> 00:07:39,310
and paste the location of where that
library folder is
99
00:07:39,310 --> 00:07:44,870
apply and run if everything checks out
after running this program you should
100
00:07:44,870 --> 00:07:49,020
have a small window that appears
this will serve as the foundation for
101
00:07:49,020 --> 00:07:52,710
our java fx
gui applications alright everybody
102
00:07:52,710 --> 00:07:55,120
that's the basics of installing and
setting up
103
00:07:55,120 --> 00:08:00,460
javafx for eclipse i do plan on a
separate video on doing the same thing
104
00:08:00,460 --> 00:08:04,540
for intellij idea if you would like a
copy of all these steps
105
00:08:04,540 --> 00:08:08,770
and the appropriate links i will include
those in the description down below
106
00:08:08,770 --> 00:08:12,430
but yeah that's how to install and set
up java fx
107
00:08:12,430 --> 00:08:46,850
for eclipse hey
108
00:08:46,850 --> 00:09:03,600
you yeah i'm talking to
you
109
00:09:03,600 --> 00:09:56,089
if you learned something new
110
00:09:56,089 --> 00:10:24,389
then help
me help you in three easy steps
111
00:10:24,389 --> 00:12:30,790
by smashing that
112
00:12:30,790 --> 00:13:03,540
like button drop a
comment down below
113
00:13:03,540 --> 00:14:28,350
and subscribe if you'd like to become a
fellow bro
114
00:14:28,350 --> 04:19:09,489
[Music]
10222
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.