Problably because this package: com.games and it�s classes were created by you and you�re not deploying your web application in a war file, so you have to set the classpath to point to the package com.games regds.