I don't think double-click works well with Java classes owing to the way it expects to read the pathname to the object file. Your class needs to be executed from the directory above the location of the class file with a command of the form:
java first_pro.First_pro
If the final object is a jar file then it needs to be
java -jar <name of jar file>