Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

New to JavaFX: how to can I make jfxrt.jar and jfxswt.jar available in the JRE?

3770147Aug 27 2018 — edited Sep 2 2018

Hi, I've been developing with Java for a long time but am brand new to JavaFX. I have an Eclipse RCP and am using a new graphics library which is based on JavaFX. Most of the integration has gone smoothly except for the JRE side of things. Right now, we are adding jfxswt.jar and jfxrt.jar to our OSGi plugin directly. Of course, we don't want to (and can't?) ship this way. I've been searching online but haven't found a way to make these two libraries available at runtime and keep getting ClassNotFoundExceptions. I do also need jfxswt.jar available at compile time.

The only (reasonable?) solution I've found so far is to add them both through a -Xbootclasspath argument. But that doesn't seem like it should be necessary and doesn't solve my compile time issues.

Can someone please point me in the right direction?

Much appreciated.

Thanks,

Ken

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 30 2018
Added on Aug 27 2018
1 comment
11,161 views