Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
NullPointerException inside buildCoreModes() when starting 3.0.1 on Windows #4128
After downloading and unpacking version 3.0.1 I get a window titled "We're off on the wrong foot" Contents of window include, "An error occurred during startup" " java.lang.NullPointerException at processing.app.Base.buildCoreModes(Base.java:357). See attached jpeg.
changed the title from
Null pointer exception on startup with 3.0.1
NullPointerException inside buildCoreModes() when starting 3.0.1 on Windows
May 8, 2016
I have no idea; I've never seen this and can't find a way to reproduce it.
The error seems to be happening because it can't find the folder that contains "Java Mode". Is there something strange about how the files have been unpacked from the archive? Have you messed with the Processing folder itself somehow?
Thank you! Your reply stimulated the insight I needed to fix this. It only took a few minutes after I sat down in front of my computer.
The problem was my Java CLASSPATH. For reasons related to a project I did a few years ago, I had a set of Processing jar files (probably 2.2.1) in a directory that was always in my CLASSPATH. I realize now that this is not a good idea but it made sense at the time.
When the Processing startup script runs it adds its own files and directories to the end of the CLASSPATH before launching the application. Since my other set of Processing jar files were ahead of the correct jar files, the JRE would load classes from those jars first. Not surprisingly, that is bad for Processing.
To fix it, I simply had to simply remove my addition to my CLASSPATH. It worked right away after that.
I agree! I was young and foolish.
I was setting it with an export CLASSPATH=... statement in my .bashrc file. I have a Linux (Ubuntu) box.
True. If there is anything I can do to help you do figure out how to do that, please ask.