JME3 on Windows Server 2008R2, under Parallels on Mac, inner class error

The following code gives an error at the ‘switch (e.getActionCommand())’ line. Inner class error - variable needs to be final. Believe JME3 SDK is running Java 1.7. When I compile this on my Mac, running Java 1.8 there is no problem.

Ideas? Nike

public void actionPerformed(ActionEvent e) {
     Toolkit.getDefaultToolkit().beep();
     javax.swing.SwingUtilities.invokeLater(new Runnable() {
             public void run() {
                    switch (e.getActionCommand()) {
                            case "FSM" :
                                    FSMCodeSample.createAndShowGUI();
                               break;

Well, tbh this should not work under any circumstances. I’m surprised it works in java 8.
“e” should be final “final ActionEvent e”

E is effectively final, hence the final declaration is not necessary in 1.8

Yes ‘final’ made it work. Its the difference from Java 1.7 to 1.8

Thanks Nike