Thursday, December 27, 2012

Netbeans 7.2 and upward crash on start after installing python module.

I have installed python plugin to my Netbeans 7.2.1 and after restart the IDE it struck  in module loading step in start-up screen and then crashed.
To find the reasons i read the Netbeans Log located in


[HardDrive]:\Users\[UserName]\AppData\Roaming\NetBeans\7.2.1\var\log


And after reading the log i found out that there is a class not found exception occurred as stated below.


java.lang.NoClassDefFoundError: org.osgi.framework.hooks.bundle.CollisionHook starting from ModuleCL@2bb7f958[org.netbeans.modules.netbinox] with possible defining loaders [ModuleCL@2ae827e1[org.netbeans.libs.osgi]] and declared parents [org.netbeans.MainImpl$BootClassLoader@b98df1f, ModuleCL@5bd7a97b[org.netbeans.core.netigso], ModuleCL@2ae827e1[org.netbeans.libs.osgi]]&oq=java.lang.NoClassDefFoundError: org.osgi.framework.hooks.bundle.CollisionHook starting from ModuleCL@2bb7f958[org.netbeans.modules.netbinox] with possible defining loaders [ModuleCL@2ae827e1[org.netbeans.libs.osgi]] and declared parents [org.netbeans.MainImpl$BootClassLoader@b98df1f, ModuleCL@5bd7a97b[org.netbeans.core.netigso], ModuleCL@2ae827e1[org.netbeans.libs.osgi]]


This error cause the Netbeans IDE to crash it when it load the modules. Reason for this is because Netbeans modules use OSGI framework to wire up the modules in the start up and with the version 7.2 onwards the necessary OSGI distribution was not bundled with the Netbeans.

To fix this all we have to do is download the necessary jar files from OSGI site and copy them to Netbeans location.


  1. Download the latest OSGI core from here.
  2. Rename the jar file to :

    org.osgi.core-[version no].jar
  3. Copy it to the lib folder of Netbeans resides in following location,

    [HardDrive]:\Program Files\NetBeans 7.2.1\platform\lib



Thursday, December 20, 2012

Eclipse helios "install new software" feature lagging.

I have to use eclipse helios which is 2 versions behind the current version, thanks to our IT department few days back. When i try to download pluggins over network it start to lag after 24% completed.

After doing so many searches on google finally i found out the  problem is with the JRE version.

In my machine i have the latest Java 1.7 installed. Eclipse helios originally designed for JRE 1.6 and its "install new software" feature use a depricated sort method from java 1.7 which was originally in Java 6. So to solve the problem i have started eclipse using "Command prompt" to with passing parmeter to use JDK/JRE 1.6 as java runtime for eclipse.


D:\Eclipse\eclipse j2ee indigo>eclipse -vm C:\Java\jdk1.6.0_31\bin\javaw.exe

This solve the problem and now you can install any plugging without geting stuck and suddenly stopped the process.