My current Eclipse is Oxygen.2 Release (4.7.2) and there's Java 9.0.1. Essentially Java 9 works and particularly auto import works (for "ordinary" classes and packages), but auto import (and autocompletion) does not work for javafx.*
. If I manually type import java
and press Ctrl+Space, then list of matching packages pops up where I can see javafx.*
hierarchy. But when I type e.g. import javafx.stage
and press Ctrl+Space it automatically adds .*;
and does not display any classes in the package. When I type Stage
somewhere in the method body and press Ctrl+Space, there are no suggestions for it. However when I type add an import (like import javafx.stage.Stage
) then code compiles and runs.
Any clues how to fix auto completion and auto import feature (which, as I said, works for other classes, like for instance java.time.LocalDateTime
or many othres).