gary on June 25th, 2009

Trying to start a program created with the eclipse Scala plugin, I saw an error that the main class couldn’t be found. That was cryptic, as there was a main. Stranger still, this is a program I had run successfully before.
The first part of solving the problem was to look for clues in the [...]

Continue reading about Scala Eclipse Plugin Error: Scala Signature

How do you create a single runnable jar that contains all the files it needs to run? This is one of those questions that should be easier to answer. Here’s how to do it in eclipse and NetBeans.
First, eclipse, following the post here:1. Create a Java class to run your Scala main:

package scala.loader;
import java.util.*;
public class [...]

Continue reading about Creating Single-file Runnable Jars in Scala with eclipse

gary on June 17th, 2009

The Scala Eclipse plugin is in development, so we can forgive little issues. One I keep running into is that programs sometimes can’t find themselves upon start. On the canonical hello-world program, I see:
Exception in thread “main” java.lang.NoClassDefFoundError: HelloWorldCaused by: java.lang.ClassNotFoundException: HelloWorld

So far, the only explanation I’ve found from searching the web is that the [...]

Continue reading about Scala Eclipse Plugin: got class?