Reputation: 2509
I have a project that compiles and runs well with JRE6
, but when I changed to JRE7
I found many compilation problems.
I have re-changed the JRE
on run configuration to JRE6
but the problem persists.
Here is an example:
public static class SaveInDBAction extends AbstractAction {
public SaveInDBAction() {
}
//staff
}
That class is defined on a file named EditorActions.java
and the error was:
Illegal modifier of the class SaveInDBAction...
I tried to rebuild and even recopied the project to a new one but in vain, is there any suggestions?
Upvotes: 0
Views: 81
Reputation: 24998
Here is a video that will help you to do what you want:
http://www.javavids.com/video/how-to-change-jre--jdk-in-eclipse-project.html
The site states:
Right click your project and choose properties. Select Java Build Path -> Libraries, select JRE System Library, click Edit and choose whichever JRE or JDK you like.
Hope that solved it for you.
Upvotes: 2