Package: scala
Version: 2.6.1-1lex
Severity: important

I tried to compile and run a simple test program with scala, but it
failed:

object HelloWorld {
  def main(args: Array[String]) {
    println("Hello, world!")
  }
}

$ scalac HelloWorld.scala
$ scala -classpath . HelloWorld
java.lang.NoClassDefFoundError: HelloWorld$
   at HelloWorld.main(HelloWorld.scala)
   at java.lang.reflect.Method.invoke(libgcj.so.90)
   at scala.tools.nsc.ObjectRunner$$anonfun$run$1.apply(ObjectRunner.scala:75)
   at 
scala.tools.nsc.ObjectRunner$.withContextClassLoader(ObjectRunner.scala:49)
   at scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:74)
   at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:161)
   at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)

Both class files seem to exist:

$ ls HelloWorld*.class
HelloWorld.class  HelloWorld$.class

The java executable is:
$ java -version
java version "1.5.0"
gij (GNU libgcj) version 4.3.0 20080202 (experimental) [trunk revision 132072]

What am I doing wrong? Alternatively, what is wrong with the Debian
scala package?

Thanks,
-- 
Fabian Fagerholm <[EMAIL PROTECTED]>

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages scala depends on:
ii  gij [java-virtual-machine 4:4.3-1        The GNU Java bytecode interpreter
ii  gij-4.1 [java-virtual-mac 4.1.2-16       The GNU Java bytecode interpreter
ii  gij-4.2 [java-virtual-mac 4.2.1-5        The GNU Java bytecode interpreter
ii  gij-4.3 [java-virtual-mac 4.3-20080202-1 The GNU Java bytecode interpreter
ii  java-gcj-compat [java-vir 1.0.77-4       Java runtime environment using GIJ
ii  java-gcj-compat-dev       1.0.77-4       Java runtime environment with GCJ
ii  java-gcj-compat-headless  1.0.77-4       Java runtime environment using GIJ
ii  scala-library             2.6.1-1lex     The Scala standard library
ii  sun-j2sdk1.6 [java-virtua 1.6.0+update4  Java(TM) JDK, Standard Edition, Su

Versions of packages scala recommends:
pn  sbaz                          <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to