I am trying to configure Eclipse on Java 9, but the Export → Runnable JAR file does not work, since it cannot find the main method.
Context:
What I've done:

- Right click on src -> Create -> Class

Edited Main.java to the following code:
package com.application; public class Main { public static void main(String[] args) { System.out.println(System.getProperty("java.version")); } }
Run → No errors.
Console log result: "9.0.1"
Now I want to export the code to the Runnable JAR: Right-click on Project → Export → Runnable JAR file

So, I went to Run Configurations, but the Main class was defined:

In Java 8, there was no problem exporting jar by following the steps above.
What do I need to do to use the "export to Runnable JAR file" in Java 9?
source share