I'm coding in eclipse and was following this https://www.youtube.com/watch?v=xTSxNw7UHng tutorial. I did everything the video said even the inclusion of
exports WindowTest;
I don't know why I keep getting this error. Could I please get assistance in fixing this problem
Current Code:
package WindowTest;
import javafx.application.*;
import javafx.stage.*;
public class Main extends Application{
@Override
public void start(Stage s)
{
s.setWidth(800);
s.setHeight(600);
s.show();
}
public static void main(String passes[])
{
launch(passes);
}
}
and
module WindowTest {
requires javafx.base;
requires javafx.controls;
requires javafx.fxml;
requires javafx.graphics;
requires javafx.media;
requires javafx.swing;
requires javafx.swt;
requires javafx.web;
exports WindowTest;
}