This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If one selects the Run File menu option under the Run Menu while a .scala file containing a scala application is open the following error occurs : init: deps-jar: compile-single: run-single: java.lang.NoClassDefFoundError: RunRational Exception in thread "main" Java Result: 1 It happens because the ant task run-single receives the name of the class and not the fully qualified name which the interpreter needs to execute the application.
To be more clear the error message reads : init: deps-jar: compile-single: run-single: java.lang.NoClassDefFoundError: myclass Exception in thread "main" Java Result: 1 But myclass belongs to mypackage. If the reference ${run.class} in the run-single task is changed to mypackage.myclass then the Run File menu works as expected.
Created attachment 78563 [details] Suggested fix in hg bundle format
I have added a hg bundle that fixed several problems I had with the run this file. It now properly supports classes extending Application, multiple main classes in a single file, including main classes in sub packages.
@staale, you patches has been applied at: 8fe006d9f245