Running JavaFX in JGrasp

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

3/26/2019 Running JavaFX in JGrasp - Google Docs

Running JavaFX on Java JDK 11 using JGrasp 
 
Running JavaFX on JDK 11 using JGrasp: 
Follow these steps: 
 
1. Download JavaFX SDK from 
https://gluonhq.com/products/javafx/ 

 
 
Make sure to download one according to your OS (Windows, Mac) 
2. Unzip the downloaded file. Open the unzipped folder. You will see the folder  
 
 
 
 
 
 
 
 
 
3. Copy this folder and paste it into downloads folder inside 
Users\<yourusername>\Downloads. Do this step although your folder is already 
in downloads folder. 
4. Open JGrasp. Try to compile and run your JavaFX code. As expected you will 
get the errors given that JavaFX is no longer part of the JDK 

https://docs.google.com/document/d/1lySaVzQ8kW0nSjTPFx5mkepBpT2HtqlpoAnG_YFClXs/edit 1/3
3/26/2019 Running JavaFX in JGrasp - Google Docs

5. Go to  Settings ­> PATH/CLASSPATH ­> Workspace ­> CLASSPATHS  , 
press New, and add, one by one, the different JavaFX jars from the 
downloads/javafx­sdk­11.0.2/lib folder.   

 
 should work now. 
Build ­> compile 

. now. It should give you errors 
Build ­> Run 

­­­­ 
jGRASP  
exec 
: java  
SampleFX 
Error 
: J
 avaFX 
 runtime components are missing 
, a
 nd 
 are required to 
run  
this 
 application 
  
­­­­ 
jGRASP wedge 
: e
 xit 
 code  
for 
 process  
is 
 1
 . 
  
­­­­ 
jGRASP 
: operation complete 

https://docs.google.com/document/d/1lySaVzQ8kW0nSjTPFx5mkepBpT2HtqlpoAnG_YFClXs/edit 2/3
3/26/2019 Running JavaFX in JGrasp - Google Docs

 Goto  
6.  . 
Settings ­> Compiler settings ­> Workspace 

 
Next to the  Environment   tab, go to  Flags/Args 
 tab. Copy and paste the 
following on the row Run and column FLAGS2 OR ARGS2 as shown in above 
diagram: 
 
­­ 
module 
­p
 ath  
/U
 sers 
/< changeItToYourUsername 
>/
 Downloads/ 
javafx 
­s
 dk 
­1
 1.0 
.2
 /
 l
 ib 
­­ 
add 
­m
 odules javafx 
.c ontrols 
 
 
For eg: 

­­ 
module 
­p
 ath  
/U
 sers 
/milan 
/Downloads/ 
javafx 
­s
 dk 
­1
 1.0 
.2
 /
 l
 ib  
­­ 
add 
­m
 odules 
javafx 
.c
 ontrols 

. now. It should work. 
Build ­> Run 

https://docs.google.com/document/d/1lySaVzQ8kW0nSjTPFx5mkepBpT2HtqlpoAnG_YFClXs/edit 3/3

You might also like