This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Scala Eclipse Run Config failure

2 replies
manojo
Joined: 2008-12-22,
User offline. Last seen 3 years 3 weeks ago.
Hi everyone,

I have been experiencing some really weird problems. I have written the following in the eclipse editor:

package another

object Mine extends Application {
  println("hello")

}

when I try to run the program (via run as Scala Application), I get the error that there is no main class in Min (NOTE the missing last letter). Has this ever happened to any of you ? Repairing the name in the options doesn't help either.

I have Java projects running perfectly fine, however.

Thanks,
Manohar
Thomas Pawlitzki
Joined: 2009-01-07,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala Eclipse Run Config failure

Hello Manohar,

> when I try to run the program (via run as Scala Application), I get the
> error that there is no main class in Min (NOTE the missing last letter). Has
> this ever happened to any of you ? Repairing the name in the options doesn't
> help either.

Try to clean the project. I think this error occurs when you change an
object to a runnable object subsequently,

Cheers,
Thomas

manojo
Joined: 2008-12-22,
User offline. Last seen 3 years 3 weeks ago.
Re: Scala Eclipse Run Config failure
Hello,

thanks for your inputs. What solved my problems was reinstalling the plugin (creating new projects wasn't helping either).

Manohar

On Thu, Jan 22, 2009 at 11:24 PM, Thomas Pawlitzki <thomas [dot] pawlitzki [at] gmail [dot] com> wrote:
Hello Manohar,

> when I try to run the program (via run as Scala Application), I get the
> error that there is no main class in Min (NOTE the missing last letter). Has
> this ever happened to any of you ? Repairing the name in the options doesn't
> help either.

Try to clean the project. I think this error occurs when you change an
object to a runnable object subsequently,

Cheers,
Thomas

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland