Wednesday, July 6, 2011

Eclipse shows Initializing Java Tooling NullPointerException Error

Eclipse IDE shows Initializing Java Tooling java.lang.NullPointerException when a new workspace is trying to load
One of the reason for this error is due to different JRE used by the Eclipse IDE and the System environment variable settings for JAVA_HOME. Edit the environment variable JAVA_HOME and set it to the same JRE used by Eclipse IDE. Close and reopen the Eclipse IDE will resolve the hanging or taking long time to load.
You will notice a glimpse of Initializing Java Tooling and it will complete soon without any error.

2 comments:

Julio César Arenas Gómez said...

Thanks so much for your tip. It was really useful. Is there any way to work with different JREs without that error?

Vinay Barnwal said...

Hi Julio, in short yes you can configure the JRE to use to build and compile your projects in eclipse. Right click the projects and select Builders/Java Compiler or so to create a new builder or configure your compiler you want.
Hope this helps.