How to solve package is declared in module, but module does not read it?
Asked Answered
M

0

4

I am migrating my development environment to another pc. I use NetBeans 10, open JDK11, JavaFX. When I import the main project into NetBeans I get the following error:

on:

import java.util.logging.Level;
import java.util.logging.Logger;

error is:

package java.util.logging is not visible

package java.util.logging is declared in module java.logging, but module javafx.swing does not read it.

Do you have any idea how to solve it? Thank you

Marlo answered 6/3, 2020 at 15:36 Comment(4)
Does this Q&A help?Beersheba
you have to say something simiar to the following in module-info.java. opens sed.work.ez_proxy_gui_utility_2_maven.menu_options to javafx.fxml; exports sed.work.ez_proxy_gui_utility_2_maven.menu_options;Creamery
Does this answer your question? JavaFX deployment library not found in active JDKAssassinate
I don't have a module-info.java...In old development environment this i don't have this error, but the code is the same..Marlo

© 2022 - 2024 — McMap. All rights reserved.