2

My context:

  • 9-ea-113 (that is javafx now fully modularized, without jfrt.jar)
  • eclipse-neon-M6 with the current beta support for java9 (running on java8, if that matters)
  • win7

Something simple like

import javafx.application.Application;

public class FirstApplication extends Application {
    //
}

doesn't compile because the javafx.xx packages are not found.

What to do?

kleopatra
  • 51,061
  • 28
  • 99
  • 211
  • Have you imported the module? see http://stackoverflow.com/questions/36910746/package-java-net-http-does-not-exist-error-on-jdk9 – assylias May 16 '16 at 09:42
  • Did you finally got that working? I am stuck with the same problem. – mipa May 18 '16 at 12:34
  • @assylias hmm .. I think that question is slightly different: I have no modules of my own, I'm compiling for java8 – kleopatra May 18 '16 at 14:01
  • @mipa no, I gave up for now - can develop against java8 and move up to java9 later (using a patch layer) – kleopatra May 18 '16 at 14:02

1 Answers1

0

Edit the .classpath file of the project and add the entry below - seems to work.

  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
     <accessrules>
       <accessrule kind="accessible" pattern="javafx/**"/>
     </accessrules>
  </classpathentry> 
wzberger
  • 923
  • 6
  • 15