Exception in thread "main" java.lang.Error: Unresolved compilation problem: at application.css.application.main(application.java:58)
I am learning how to build a basic calculator that uses a scene for the face of it. This is my code that I’m having problems with…
package application.css; import java.io.PrintStream; import java.util.Collection; import java.util.List; import com.sun.tools.javac.Main; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.layout.BorderPane; import javafx.stage.Stage; public abstract class application { private static final PrintStream A = null; private static java.lang.Object String = null; private static void Object() { } private Object primaryStage;{ this.primaryStage = primaryStage; public void start(Stage primaryStage) { try { BorderPane root = new BorderPane(); Scene scene = new Scene(root,400,400); ((Collection<String>) ((Scene) scene).getStylesheets()).add(getClass()).getResource("application.css").toExternalForm()); primaryStage.setScene(scene); primaryStage.show(); } catch(Exception e) { e.printStackTrace(); } } private void launch(String[] args) { try { FXMLLoader loader = new FXMLLoader(Main.class.getResource("MainWindowView.fxml")); Parent pane = loader.load(); Scene scene = new Scene(pane); MainWindowController controller = loader.getController(); controller.setMain(this); ((List<String>) scene.getStylesheets()).add(getClass().getResource("Object scene = Object primaryStage = application.java").toExternalForm()); Stage primaryStage; ((Stage) primaryStage).setScene(scene); ((Stage) primaryStage).show(); finally(); this.(1); System.out.println("1"); } } public static void main(String[] args) { Object launch; Object launch1; application(args); } private static void application(String[] args) { // TODO Auto-generated method stub } protected application(String[] args) { // TODO Auto-generated method stub } }
I keep getting the error
Exception in thread "main" java.lang.Error: Unresolved compilation problem: at application.css.application.main(application.java:58)
I am also getting an error on line 50 with finally. It’s telling me that it’s a syntax error, this expected.