1

I've recently imported one of my projects to another computer. It uses the same jdk(Java8u40) and IDE (Netbeans 8.0.2) as the previous machine. However, after I've imported the project, it appears that the TextFormatter class is missing. I'm not sure why it would be missing a single import from the same .jar file.

My imports:

    import javafx.scene.control.TextFormatter;
    import javafx.scene.control.TextFormatter.Change;

Error Message:

     error: cannot find symbol import javafx.scene.control.TextFormatter;
     symbol:   class TextFormatter
     location: package javafx.scene.control

Any help would be appreciated. Thank you.

smcm062
  • 57
  • 7
  • What's the output from `java -version`? I'm assuming you've seen this: http://stackoverflow.com/questions/24361270/javafx-packages-not-found – Andrew Henle Dec 16 '15 at 17:28
  • 1
    I suspect it is not really using JDK 8u40 (or later), but an ealier JDK 8 release. – James_D Dec 16 '15 at 17:38
  • What does the "Help->About" window say? Does the project use the correct platform (Project->Properties->Libraries)? – fabian Dec 16 '15 at 18:37
  • You were all correct. It was using the wrong version of Java8. Thank you very much for your help. – smcm062 Dec 17 '15 at 17:55

0 Answers0