Skip to content

This is a template for CSE205 students at Arizona State University to use for JavaFX Application development

Notifications You must be signed in to change notification settings

fernandonevarez/javaFX_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arizona State University CSE 205 - Visual Studio Code JavaFX template

This is github template is mean’t to help students in CSE205 at Arizona State University setup a non-modular JavaFX development environment in Visual Studio Code.

Requirements

  • JavaFX SDK
    • MacOS for Apple Silicon(x64) and Intel(aarch64)
    • Windows for x64 and x84
    • Linux for aarch64, arm32, and x64
  • Java Profile(optional)
    • you can import the profile by use this url: https://vscode.dev/profile/github/b3fa920f460128aaf090ee6df788cc23 Screenshot 2023-02-12 at 2.05.00 AM.png
    • An optional download, but will have necessary extensions for CSE205 Java and JavaFX projects, along with some other helpful extensions I use to make development easier. If you decide you don’t want to download it. You’ll need to download the following extension for javaFX development: Extension Pack for Java

Setup

1.) Create the Java project

  • open the command palette and enter Java: Create Java project..., then select it. Screenshot_2023-02-12_at_12.05.42_AM.png
  • select No build tools in the list as the project type. Screenshot_2023-02-12_at_12.06.34_AM.png
  • Then name the project of the file(i.e assignment_06) and then select a target location where you want to store the new project. Screenshot_2023-02-12_at_12.10.13_AM.png
  • From here, the newly created project will open in a new Visual Studio Code window.

2.) Add Java SDK library dependencies

  • To add JavaFX as dependencies to your project, you can simply copy all the jar files from the lib folder of your downloaded JavaFX SDK, for instance /Users/your-user/Downloads/javafx-sdk-19/lib/ to the lib folder of your project. Screenshot_2023-02-12_at_12.42.08_AM.png Screenshot_2023-02-12_at_1.07.17_AM.png

  • Or alternatively, under JAVA PROJECTS, by the Reference Libraries click on the + sign and add the reference libraries needed for the project. In the 2 picture below, I’m adding all of the reference libraries in the Java SDK download.

    Screenshot_2023-02-12_at_12.35.06_AM.png

    Screenshot_2023-02-12_at_12.42.08_AM.png

    Screenshot_2023-02-12_at_12.46.17_AM.png

  • you know if they downloaded correctly if you can see the file in Reference Libraries section under JAVA PROJECTS.

3.) Configue Java Runtime

  • The last thing you got to do is ensure that your java runtime is running java 8 aka java 1.8

Screenshot 2023-04-20 at 11.39.56 PM.png

Screenshot 2023-04-20 at 11.41.14 PM.png

  • If your java runtime isn’t running java verison 1.8, chnage the verison to 1.8

Screenshot 2023-04-20 at 11.43.19 PM.png

4.) From here, you have everything you need to make an JavaFX project in Visual Studio Code. Just make sure all you source files aka .java files are in /src

About

This is a template for CSE205 students at Arizona State University to use for JavaFX Application development

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages