I recently reinstalled my Ubuntu 13.04. I used processing-2.0b9 bevor the reinstall and it worked fine. Now it always crashes on startup with the following exception:
Exception in thread "AWT-EventQueue-0" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at java.lang.String.substring(String.java:1904)
at processing.app.Recent.updateMenu(Recent.java:127)
at processing.app.Recent.load(Recent.java:87)
at processing.app.Recent.<init>(Recent.java:60)
at processing.app.Base.<init>(Base.java:346)
at processing.app.Base.createAndShowGUI(Base.java:199)
at processing.app.Base.access$000(Base.java:46)
at processing.app.Base$1.run(Base.java:137)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:666)
at java.awt.EventQueue.access$400(EventQueue.java:81)
at java.awt.EventQueue$2.run(EventQueue.java:627)
at java.awt.EventQueue$2.run(EventQueue.java:625)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:636)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
I tried the newest version processing-2.0.2 but it also crashes with the same exception.
I also reinstalled the java OpenJDK with no success.