# Processing and JavaFX

**URL:** <https://discourse.processing.org/t/processing-and-javafx/45692>\
**Category:** Libraries\
**Created:** [February 1, 2025, 6:04pm UTC](https://discourse.processing.org/t/processing-and-javafx/45692 "2025-02-01T18:04:21Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [November 16, 2025, 5:31pm UTC](https://discourse.processing.org/t/processing-and-javafx/45692/9 "2025-11-16T17:31:06Z")

</div>

This topic needs to be revisited, because there appears to be a simpler way. On my Windows 11 system I have been able to run a javafx demo without using a separate ‘code‘ folder. I did this by copy/pasting all the javafx.xxxx.jar files into the following address: C:\Users\s\Documents\Processing\libraries\javafx\library\javafx.xxxxx.jar. These jar files have been buried in a ‘modules‘ folder inside of the native operating system folder, but need to be at the location above to be picked up by the source code. I tested this technique on Linux and it also works there. You can test this by running the following demo:

```processing
import javafx.scene.canvas.Canvas;
import javafx.scene.layout.StackPane;

Canvas canvas;
StackPane root;

void setup(){
 size(350,200,FX2D);  
 surface.setTitle("JavaFX in Default Wnd");
 canvas = (Canvas)surface.getNative();
 root = (StackPane)canvas.getParent();
}

void draw(){
  fill(0,255,0);
  circle(width/2,100,100);
}

```

**Output:**

 ![nocode](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/a/7/a721edc29552b21735eb1860046c8c78bb2fc9da.png)

---

_[View the full topic](https://discourse.processing.org/t/processing-and-javafx/45692)._
