adding jfxrt.jar to standard Eclipse build path

How can I convince eclipse to include jfxrt.jar into its standard build path by default in order to avoid editing it manually every time I change the JVM?

thanks!


The more convenient way is :

Go to > Window > Preferences > Installed JREs > Edit your jdk >1.7u7 location

Then click on "Add external Jar" and choose the jfxrt.jar provided by the Jdk.

All JavaFX classes will be available for all your projects , just by adding this custom Jdk

The pitfall is that you can't use Execution Environment because the jfxrt.jar has not been added into Eclipse jars definition of a Jdk.


You can add jfxrt.jar from Project -> Properties -> Java Build Path -> Libraries -> Add External Jars

Unfortunately, you need to do it for each project.

链接地址: http://www.djcxy.com/p/73834.html

上一篇: 以独立于机器的方式将plugin.jar添加到eclipse中的构建路径中

下一篇: 将jfxrt.jar添加到标准的Eclipse构建路径