I get this error when i try to run my little application:
Exception in thread "main" java.lang.NoClassDefFoundError:
The compiler dont throw any errors. its only when i try to execute the application
fileOps.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package backup;
/**
*
* @author admin
*/
public class fileOps {
public String greeting(String args)
{
return args;
}
}Main.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package backup;
/**
*
* @author admin
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
fileOps dispGreeting = new fileOps();
dispGreeting.greeting("hello");
}
}Whats wrong and how do i fix this ?
Best regards Mads












