Error: Could not find or load main class ...pack1.Employee Caused by: java.lang.ClassNotFoundException: when i complie it from a different directory code example
Example: eclipse Error: Could not find or load main class main java.lang.ClassNotFoundException
// Run configurations -> Run -> Run configurations
// In the Classpath tab select "Advanced"
// Add where Eclipse usually put the *.class for the projects, which is (usually) "bin".