Hi,
This is indeed very annoying. The question remains why the Java version isn't working and why there's a Scala option at all if it's tricking JDT anyway.
Regards,
Rüdiger
The launch shortcut is provided from the JDT. It contains some code to check if the current editor or selection can be launch as a Java application. It is likely checking if it contains a main static method, in the Java model.To support Java/Scala projects, we generate the info for the Scala files in the Java model. So the Scala application looks like valid Java application.I'm not quite sure why it is not able to launch the application.
One tip that might make your life easier: in the preferences, Run/Debug > Launching, set 'Launch Operation' to 'Always launch the previously launched application'. Then when using the Run or Debug button, or the F11/Ctrl+F11 key shortcuts, Eclipse relaunches the last application, instead of trying to launch the current project. It is usually faster.