I run my program from terminal, while it runs fine from IntelliJ. I get the error "could not find or load main class Main". It's not the filenames that is incorrect and neither does the file have any specified package name.
here is my Main.java file.
import javafx.application.Application;
import javafx.stage.Stage;
public class Main extends Application{
public static void main(String[] args){
System.out.println("hej");
launch();
}
@Override
public void start(Stage stage){
}
}
It seems to be something with javaFX. I am using linux