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.
- 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
- 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
- you can import the profile by use this url:
- open the command palette and enter
Java: Create Java project...
, then select it. - select
No build tools
in the list as the project type. - 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. - From here, the newly created project will open in a new Visual Studio Code window.
-
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. -
Or alternatively, under
JAVA PROJECTS
, by theReference 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. -
you know if they downloaded correctly if you can see the file in
Reference Libraries
section underJAVA PROJECTS
.
- The last thing you got to do is ensure that your java runtime is running java 8 aka
java 1.8
- If your java runtime isn’t running java verison
1.8
, chnage the verison to1.8