We are about to switch to a new forum software. Until then we have removed the registration on this forum.
i can't run any processing code now....even basic examples.. the console say:
Exception in thread "Thread-12" java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:592)
at java.lang.Integer.parseInt(Integer.java:615)
at processing.app.Preferences.getInteger(Preferences.java:298)
at processing.mode.java.runner.Runner.getSketchParams(Runner.java:315)
at processing.mode.java.runner.Runner.launchVirtualMachine(Runner.java:177)
at processing.mode.java.runner.Runner.launch(Runner.java:119)
at processing.mode.java.JavaMode$1.run(JavaMode.java:162)
at java.lang.Thread.run(Thread.java:745)
i was using 3.0.1 on win7
i have uninstalled Java and reinstalled p3 several times...still not working...
and i followed the instruction on https://github.com/processing/processing/wiki/troubleshooting
i deleted the preferences.txt but now i can't open the preference window by going to File->Preference in processing and the console says:
Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:592)
at java.lang.Integer.parseInt(Integer.java:615)
at processing.app.Preferences.getInteger(Preferences.java:298)
at processing.app.ui.PreferencesFrame.showFrame(PreferencesFrame.java:682)
at processing.app.Base.handlePrefs(Base.java:1718)
at processing.app.ui.Editor$17.actionPerformed(Editor.java:776)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
at java.awt.Component.processMouseEvent(Component.java:6525)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6290)
at java.awt.Container.processEvent(Container.java:2234)
at java.awt.Component.dispatchEventImpl(Component.java:4881)
at java.awt.Container.dispatchEventImpl(Container.java:2292)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
at java.awt.Container.dispatchEventImpl(Container.java:2278)
at java.awt.Window.dispatchEventImpl(Window.java:2750)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
anyone know what to do now??
Answers
still not running even for the 32bit version....
That looks like a preference is missing a value.
NumberFormatException...
processing.app.Preferences.getInteger...
A corrupted preferences.txt file?
maybe...but how to fix that??
the troubleshooting suggests that the preferences.txt file will be recreated if you delete it so try that again.
post the recreated preferences.txt file here.
i have run p3 several times...the preferences.txt wasn't recreated...no file at the original path...
here's mine, which was successfully recreated when i just tried it.
NB was recreated on a slightly older version (3.0b7) on linux, so it might not be exactly as needed.
NB replace the value for sketchbook.path.three near the bottom
i created a txt by hand and copied your text...but the same problem still there...same thing in the console...
Did you try the thing about adding flags to the startup script to create a logfile?
Try that and paste the logfile here
haven't try that....can you tell more specifically how to do that,please?? or what webpage i can refer to? thanks for your patience....
It's the troubleshooting link in your first post.
i followed the troubleshooting part on p5 github...and got a launch4j.log here's it:
(it's a good idea if you're posting lists of things or output to format it as code for the forum - highlight and hit ctrl-o. otherwise it gets displayed as one big paragraph and the symbols get translated into markup and it looks a mess)
anyway, nothing looks obviously wrong in the above log, but then i don't know windows 7
is the path really "C:\Users\user..." or have you anonymised it? the classic problem is a space or non-ascii characters in the path...