Skip to content

Error trying to import JavaFX classes in Processing 4 #15

Open
@luiscastilho

Description

@luiscastilho

Description

I have a project based on Processing 3 and I'm trying to make it work with Processing 4. It uses a few JavaFX classes and I just can't get them to work. I know JavaFX was moved to a separate library but even after installing it I get an error trying to import JavaFX classes in Processing 4.

BTW I asked this same question in discourse.processing.org but no one seems to know.

Expected Behavior

JavaFX imports should work once you install the JavaFX library.

Current Behavior

Installing the JavaFX library and trying to import a JavaFX class gives me this error: The package “javafx” does not exist. You might be missing a library.

Steps to Reproduce

  1. Install JavaFX library in Processing 4.
  2. Restart Processing.
  3. Try to run this code:
import javafx.beans.property.SimpleIntegerProperty;

void setup() {
  SimpleIntegerProperty version = new SimpleIntegerProperty(1);
}

void draw() {
  background(0);
}

Your Environment

  • Processing version: Processing 4.0 beta 7
  • Operating System and OS version: Windows 10
  • Other information: JavaFX library v4.0 beta 5

Possible Causes / Solutions

If there's anything I need to do after installing the JavaFX library, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions