My Problem:
error: object swing is not a member of package scala
import scala.swing._
^
When I try to start any GUI App with Scala. What I tryed up to now: call directly by the scala command, and precompile first by scalac and fsc, nothing works.
My System: an Ubuntu 11.10 Machine, with installed OpenJDK 6, OpenJDK 7, Oracle JDK 6 and the Scala-Packe from the Ubuntu Repositories, additionally I tryed the “new” Scala from the official Scala Homepage (scala-lang). The .deb-package fails to install, but the plain files from the *.tgz file works so far.
I tried every possible combination of those Software I have installed, no one works.
The Joke: on my Windows 7 Machine, the same code (dropbox-sync) works without any problems.
Any Ideas? Did I forget something?
It is apparently not finding
scala-swing.jaron the classpath. I’m not sure why this would be; it works on my system (still 11.04; don’t like Unity). Try adding it explicitly:-cp /wherever/oneiric-ocelot/puts/scala/lib/scala-swing.jar.If the file is not on your system, you can download it from the project webpage. (Click on the appropriate “latest release” buttons in the README, just under the title. Then download the jar.)