Kachna
Kachna

Reputation: 2961

How to use java update 40 version of Java on NetBeans 8

I would like to use and test the classes added in Java 8 update 40, but unfortunately the compiler of Netbeans generates an error when i add the following statement:

import javafx.scene.control.Dialog<R>;

The following image shows that the JDK installed in my comuter is : java 8 update 40. enter image description here

Upvotes: 0

Views: 145

Answers (2)

Martijn Burger
Martijn Burger

Reputation: 7543

Right click your project. Go to properties. Click Build > Compile and change or add jdk_8_u40 platfrom

Upvotes: 0

Puce
Puce

Reputation: 38142

Make sure that in the /etc/netbeans.conf file you configured the correct JDK.

Also as WonderWorld says: Use

import javafx.scene.control.Dialog;

instead of

import javafx.scene.control.Dialog<R>; 

Upvotes: 2

Related Questions