2

I've been trying to use import javafx.embed.swing.SwingNode because I want to use SwingNode in my project, but the error "cannot be resolved" comes up.

I have a JavaFX SDK in libraries, so I don't know where the problem is.

Does anyone have any idea what it can be?

1

1 Answer 1

1
  1. Use Oracle Java 8 (it places JavaFX classes on the default classpath).
  2. Don't manually place JavaFX libraries in your classpath.

See Maven project with JavaFX (with jar file in `lib`) for more information (you probably aren't using maven but much of the background info and reasoning applies equally to your question).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.