How to make my default JDK FX-enabled? - java

As I've tried to create a Java FX 2.0 application project in NetBeans IDE 7.1 Beta, it said I have no FX-enabled JDK. I've managed to set up an "FX-enabled JDK" folowing the instructions on how to create it manually (found here). But I neither need nor want to have multiple JDKs, I want the one and only to be "FX-enabled". Though, the default JDK NetBeans platform entry (referencing the very same JDK installation actually) even does not contain a Java FX tab in its settings. How to fix this?

Unfortunately in NB 7.1 Beta you can't have default JDK being FX enabled.
All new JavaFX projects will refer to Java Platfrom named "Default JFX Platform".

You just need to download and install the JavaFX 2.0 SDK from javafx.com, and it will work.
It doesn't need any other JDK. It installs next to your already installed JDK.
After you have installed the JavaFX SDK you can create a new JavaFX application, and everything will be great.

Related

How can i use eclipse 2020-09 to develop java 8 projects?

I am a regular IntelliJ user, but most of my co-workers use Eclipse. A lot of them say the latest version of Eclipse "2020-09", which requires a JRE "higher than Java 8" in order to run, cannot be used to develop projects requiring JRE8.
This is pretty surprising to me, since I know it is possible to install multiple JDKs and JREs on one machine, I've done it plenty of times.
What is the typical way a person would configure Eclipse 2020-09 (already installed) to work on a project that requires a Java 8 JRE?
JRE 8 apps in eclipse workspace is possible by having the jre 8 jdk. It is true that in order to use eclipse 2020-09 you need java 11+ jdk/jre, but making projects that support jre 8 is still possible.Even I still use 2020-06 and before. Here is a method you could use to get JRE 8 implemented back in your project. Although you can change the defaults, this one will help you change the environment back to java 8 for 1 project.
Right click the library named somthing like "JRE system library[JavaSE-11]". Press properties. This is what you will see JRE System Library chooser image
Choose "Alternate JRE" then click "Installed JREs"Step Image
Press "Add" then you will see 3 options. Choose standard VM. Find your java 8 jdk directory. Usually it is something like C:\Program Files\Java\jdk1.8.0_251.
You can configure the default arguments for your jvm runtime. Then simply hit ok,select the jdk-8 library and close it. Then choose alternate jre again and in the drop-down choose jdk-1.8.0 or some name like that. This will only work if you also have java 8 installed alongside java 11 that is configured properly JDK
You can use Java 11 to start the Eclipse 2020-09 and configure a project to compile with Java 8. The problem is if you want a Eclipse plugin that uses CORBA for example. This module was removed from Java 11 earlier. In this case, I recommend to use Eclipse 2020-06.
Earlier versions of 2020-09 was working with Java 8. I had it, too. Then I updated and I got the same error message like you.
I propose to use an older one or to install JRE 11 and set the JAVA_HOME env variable to it.
The inside the IDE you can set java 8 like an JDK and develope your project with Java 8 while eclipse is running with 11.

XIMA Formcycle problems with images preview

I have the following problem -
I'm trying to install the latest version of XIMA Formcycle software, but I'm having problems with Image Preview feature inside the application.
In their support page, it is described that you need JavaFX 11 in order the image previews to be displayed.
The environment I have is built with Server JRE 8.
My question is - how can I install JavaFX 11 ( from what I understood it is a feature in Java, to run together with Server JRE 8)?
Is JavaFX a part of Server JRE 8?
Thank you.
JavaFX is no longer packaged with the JDK as of JDK 11. You needed to install JavaFX separately.

How to add a site that uses java to the Java exception list in JDK 11?

In the previous versions of Jdk (7-10) there was a java console, where we could add sites in Security->ExceptionSites. In JDK 11 Java Control Panel, which was used for configuring the deployment technologies, has been removed along with the shared system JRE (but not the server JRE) and the JRE Auto Update mechanism.
How can I make my app work ?
Thank you!

FXLauncher - Is it possible to change/update the JRE after installation

I have a Self contained JavaFX application installed on windows bundled using FXLauncher.FXLauncher provides auto updates and install new versions from the respository on every application launch but my question is it possible to change/update the JRE that is installed without re-installing the application again ?
According to author here this feature is scheduled for release 2.0.

JavaFX not compiling in Netbeans

I'm using Mac OS X, Netbeans 7.3 Beta 2 and JDK 7 u12.
Netbeans cannot see the JavaFX library. I thought that the JavaFX library comes with JDK 7?
Netbeans see's and uses JDK 7 (coming from JDK 6 I have now lost my retina icons and text!), but when I try and add a library there is no JavaFX library available.
I've gone through the steps shown on Netbeans website to configure and create a JavaFX application, which is where I found that for OS X I need JDK 7, but I have had no luck.
What am I missing?
jdk7u12 is still pre-release software and may be incompatible with NetBeans.
Specifically, a recent change in the JavaFX structure is HEADS-UP: jfxrt.jar moving to jre/lib/ext. If you try using jdk7u12 with a version of NetBeans coded before the JavaFX structure change (such as NetBeans 7.3 beta 2), it may not work out of the box. In the meantime, I suggest using a production version of the jdk (such as jdk7u11) until NetBeans update their software to work correctly with the relocated jfxrt.jar library.
I know you note that you have followed steps on the NetBeans website, but you don't link to them. Ensure that you have correctly configured a NetBeans JavaFX Platform as detailed in the NetBeans JavaFX setup tutorial (Although that tutorial is currently for NetBeans 7.1 and 7.2, hopefully it will also work for your 7.3 beta). Also, make sure that when you create your project, you create a "JavaFX Application" in NetBeans - as opposed to a regular "Java Application".
If you are still having issues, list your compile errors in your question.
when I try and add a library there is no JavaFX library available.
JavaFX is not configured as a library on NetBeans - it is part of a "JavaFX Platform" as detailed in the setup link in this answer.
coming from JDK 6 I have now lost my retina icons and text!.
Kind of unrelated, but JavaFX in JDK8 will support retina displays (scheduled release data Sept, 2013).
John,
You might try posting your question on the Oracle JavaFX 2.0 and Later Forum:
https://forums.oracle.com/forums/forum.jspa?forumID=1385
Please feel free to tweet the URL of your question to me #JavaFXpert and I'll follow up to make sure it gets answered.
Thanks,
Jim Weaver

Categories