Java - Main Class Execution Error [duplicate]

0

Good afternoon,

After using Eclipse Luna and returning to Eclipse Mars, the business simply popped up and I deleted the Eclipse files to see if it worked out and re-imported the java project.

  

(JFrame Access): "Error: Could not find or load main class view.Access"

All other JFrames have the same problem. Now I've created another one to test it and it runs the window or I opened the program window. Although I have not made any modifications to the JFrames source code, the problem has simply come up. I have no idea how to solve this ...

    
asked by anonymous 10.12.2015 / 20:08

1 answer

1

Access seems to be a class of your project, this is because Eclipse should not have recognized or has not set the path of your package, perhaps because it has been changed, check the path of the package.

Another possible situation that may have occurred is that the Java version is not properly configured for this change.

Also check the import of the JFrame class if Java recognizes it as part of the Swing API.

One last option I know is to go to the Project > Clean and choose your project so that eclipse tries to solve the problems of build.

    
10.12.2015 / 20:17