Andreas, look closely at the error message:
Exception in
thread "main" java.lang.NoClassDefFoundError: Main (
wrong name: home/andreas/tmp/Main)
Do you have a package statement ("package home.andreas.tmp;") in your source file? If so,
you should have put your class file in the right directory structure (.../home/andreas/tmp) and you should have put the directory that contains the "home" directory in the classpath.
Have a look at these pages:
How Classes are Found Setting the class path (edit): Ah, you already discovered it yourself...
[ November 04, 2005: Message edited by: Jesper de Jong ]