[scala-tools] Re: Run Scala scripts in Eclipse?

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown [scala-tools] Re: Run Scala scripts in Eclipse?

by jlist9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi I'm just starting to use Eclipse to learn Scala. It seems like I can't
run Scala scripts (not applications) from Eclipse. I always get a compilation
error:

"Expected class or object definition"

Or am I missing anything? IntelliJ runs scala scripts fine.

Thanks

Re: [scala-tools] Re: Run Scala scripts in Eclipse?

by Miles Sabin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Oct 24, 2009 at 9:30 AM, jlist9 <jlist9@...> wrote:
> Hi I'm just starting to use Eclipse to learn Scala. It seems like I can't
> run Scala scripts (not applications) from Eclipse. I always get a compilation
> error:
>
> "Expected class or object definition"
>
> Or am I missing anything? IntelliJ runs scala scripts fine.

Are you able to run the basic "Hello world" example here,

  http://www.scala-lang.org/node/94

If not, please check the various version requirements and run through
the troubleshooting steps.

Cheers,


Miles

--
Miles Sabin
tel: +44 (0)7813 944 528
skype:  milessabin
http://www.chuusai.com/
http://twitter.com/milessabin