- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Re: Running HelloWorld fails...
Sun, 2009-07-12, 17:28
3.4 requires write access to eclipse folder to enable JDT weaving; 3.5 does not.
-------------------------------------
Udo Offermann wrote:
Hello everybody,
I installed the Eclipse-Scala plugin on my Fedora 11 and tried the
HelloWorld example, but it doesn't work at all.
The problems are that the simple HelloWorld script:
package hello
object HelloWorld extends Application {
println("Hello world!");
}
contains syntax errors:
line 1: Syntax error on tokens, ClassHeaderName expected instead
line 4: Syntax error on token ""Hello world!"", delete this token
The crazy thing is, that the errors are of type "Java Problem"...
Furthermore nearly everything is underlined with red curley lines.
It's really a scala project and a scala source file.
When I run this as scala application I get a popup:
"Launch Error"
Selection does not contin a main type
The details of my system are:
$ uname -a
Linux smallfish 2.6.29.5-191.fc11.x86_64 #1 SMP Tue Jun 16 23:23:21 EDT
2009 x86_64 x86_64 x86_64 GNU/Linux
Fedora Eclipse Platform
Version: 3.4.2
Based on build id: 20090211-1700
scala plugin:
2.7.5.final
Does anyone have an idea?
Best Regards
Udo