Sou iniciante e estou preso nisso. configurei passo a passo as bibliotecas etc.. porem o tipo javafx.fxml.FXMLLoader exibe um erro constando que The type javafx.fxml.FXMLLoader is not accessible
segue o código
package application;
import java.io.IOException;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
@Override
public void start(Stage stage) {
try {
Parent parent = FXMLLoader.load(getClass().getResource("/gui/View.fxml"));
Scene scene = new Scene(parent);
stage.setScene(scene);
stage.show();
}
catch (IOException e) {
e.printStackTrace();
}
}
public static void main(String[] args) {
launch(args);
}
}
Por gentileza quem puder agradeço a ajuda