Skip to content

Instantly share code, notes, and snippets.

% ant build
Buildfile: /home/soc/Entwicklung/scala-llvm/build.xml
init.jars.check:
init.jars:
init:
[echo] build time: 3 April 2012, 00:43:56
[echo] java version: OpenJDK 64-Bit Server VM 1.7.0_03-icedtea
package scalax.units
object Units {
import scalax.math.Numeric
import scalax.math.Numeric._
import Integers._
import Addables._
import Subtractables._
trait Unit {
> run scalax.units.example.UnitExample
java.lang.RuntimeException: No main class detected.
at scala.sys.package$.error(package.scala:27)
[error] {file:/home/soc/Entwicklung/scalax-units/}default-85a456/compile:run: No main class detected.
[error] Total time: 0 s, completed 07.04.2012 01:54:11
> run-main scalax.units.example.UnitExample
[info] Running scalax.units.example.UnitExample
[error] (run-main) java.lang.ClassNotFoundException: scalax.units.example.UnitExample
java.lang.ClassNotFoundException: scalax.units.example.UnitExample
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.Class.forName0(Native Method)
> show full-classpath
[info] Compiling 1 Scala source to /home/soc/Entwicklung/scalax-units/target/scala-2.9.2-RC3/classes...
[info] List(Attributed(/home/soc/Entwicklung/scalax-units/target/scala-2.9.2-RC3/classes), Attributed(/home/soc/.sbt/boot/scala-2.9.2-RC3/lib/scala-library.jar))
soc@soc-ws12 ~ % ls /home/soc/Entwicklung/scalax-units/target/scala-2.9.2-RC3/classes/scalax/units/example/UnitExample*
ls: cannot access /home/soc/Entwicklung/scalax-units/target/scala-2.9.2-RC3/classes/scalax/units/example/UnitExample*: No such file or directory
> compile
[info] Updating {file:/home/soc/Entwicklung/scalax-units/}default-85a456...
[info] Resolving org.scala-lang#scala-library;2.9.2-RC3 ...
[info] Done updating.
[info] Compiling 15 Scala sources to /home/soc/Entwicklung/scalax-units/target/scala-2.9.2-RC3/classes...
> last compile
[debug]
[debug] Initial source changes:
[debug] removed:Set()
[debug] added: Set()
[debug] modified: Set()
[debug] Removed products: Set()
[debug] Modified external sources: Set()
[debug] Modified binary dependencies: Set()
[debug] Initial directly invalidated sources: Set()
> clean; compile; last compile
[error] Expected end of input.
[error] clean; compile; last compile
[error] ^
> clean
[success] Total time: 0 s, completed 07.04.2012 02:10:18
> compile
[info] Updating {file:/home/soc/Entwicklung/scalax-units/}default-85a456...
[info] Resolving org.scala-lang#scala-library;2.9.2-RC3 ...
[info] Done updating.
[info] Compiling 15 Scala sources to /home/soc/Entwicklung/scalax-units/target/scala-2.9.2-RC3/classes...
[success] Total time: 3 s, completed 07.04.2012 02:10:24
> last compile
[debug]