Exception in thread "main" java.lang.Error: Unresolved compilation problem: Cannot make a static reference to the non-static method fib(int) from the type Lautturi
change the method to static
int fib(int n) { }
to
static int fib(int n) { }