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
And after reading the log i found out that there is a class not found exception occurred as stated below.
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.
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.
- Download the latest OSGI core from here.
- Rename the jar file to :
org.osgi.core-[version no].jar
- Copy it to the lib folder of Netbeans resides in following location,
[HardDrive]:\Program Files\NetBeans 7.2.1\platform\lib