#Java Error Location is required.
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
show the full error message
show the code where you load the resource
show in a screenshot the full directory tree of your project
`package org.example;
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 primaryStage) throws Exception {
// Load the FXML file
Parent root = FXMLLoader.load(getClass().getResource("src/main/resources/go.fxml"));
// Set the scene and show the stage
primaryStage.setScene(new Scene(root, 600, 400));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
` @mossy scaffold
Parent root = FXMLLoader.load(getClass().getResource("/go.fxml"));
should work
@round mist so ?
new error now but thanks for the help anyways.