extends Application
I can run
package hello
object HelloScala {
def main(args: Array[String]): Unit = {
println("Hello World!")
}
}
but not
package hello
object HelloWorld extends Application {
println("Hello World!")
}
If I try to run the latter as a Scala application I get an error "Selcetion does not contain a main type".
Also, I cannot produce a run configuration that will work with it.
package hello
object HelloScala {
def main(args: Array[String]): Unit = {
println("Hello World!")
}
}
but not
package hello
object HelloWorld extends Application {
println("Hello World!")
}
If I try to run the latter as a Scala application I get an error "Selcetion does not contain a main type".
Also, I cannot produce a run configuration that will work with it.
Leave a comment
Duplicate of #1000082, see workaround in that bug's description.
on 2010-08-04 09:53 *
By MattRussell
Duplicated association with ticket #1000082 was added
The workaround seems to be to create a run configuration using the first version of the program, change the program to the second version (using "extends Application"), and then try to use the run configuration that worked before. This does not work. If there is a workaround please explain. Thank you.
on 2010-08-10 11:11 *
By MattRussell
What happens when you launch the previous run configuration? Could you also confirm that the expected .class files are generated in your project's bin directory (you can use the Navigator View).
This seems to have been fixed, using Scala IDE for Eclipse 1.0.0.201010070206. Marked as to be tested.
Updating tickets (#3255, #3262, #3271, #3277, #3279, #3287, #3313, #3317, #3318, #3320, #3329, #1000000, #1000002, #1000004, #1000005, #1000007, #1000011, #1000013, #1000018, #1000019, #1000020, #1000022, #1000023, #1000024, #1000025, #1000026, #1000028, #1000031, #1000033, #1000034, #1000037, #1000039, #1000040, #1000041, #1000057, #1000058, #1000060, #1000061, #1000063, #1000064, #1000065, #1000067, #1000070, #1000073, #1000076, #1000080, #1000082, #1000083, #1000084, #1000085, #1000087, #1000088, #1000089, #1000090, #1000092, #1000093, #1000094, #1000095, #1000097, #1000102, #1000104, #1000106, #1000108, #1000110, #1000111, #1000116, #1000124, #1000126, #1000127, #1000129, #1000132, #1000133, #1000136, #1000139, #1000143, #1000144, #1000145, #1000148, #1000149, #1000152, #1000154, #1000155, #1000157, #1000158, #1000159, #1000161, #1000169, #1000170, #1000172, #1000174, #1000176, #1000178, #1000179, #1000183, #1000185, #1000188, #1000189, #1000192, #1000196, #1000198)