Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError(unable to open projects)

 
Pradeep Adibatla
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that this post doesn't belong here but nobody is active in IDE world...please share your inputs on this as I am unable to solve it!

I start my NetBeans IDE and I get an Exception like this...



------------------------------------------------------------------------

Pop-up says:-->

A java.lang.NoClassDefFoundError exception has occurred.
Please report this at http://www.netbeans.org/community/issues.html,
including a copy of your messages.log file as an attachment.
The messages.log file is located in your C:\Documents and Settings\pradeep_adibatla\.netbeans\6.5\var\log folder.

Show Detail:--->

java.lang.NoClassDefFoundError: Could not initialize class org.netbeans.modules.uihandler.Installer
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.openide.util.SharedClassObject.createInstancePrivileged(SharedClassObject.java:641)
at org.openide.util.SharedClassObject$SetAccessibleAction.run(SharedClassObject.java:1001)
at org.openide.util.SharedClassObject$SetAccessibleAction.run(SharedClassObject.java:993)
at java.security.AccessController.doPrivileged(Native Method)
at org.openide.util.SharedClassObject.findObject(SharedClassObject.java:515)
at org.netbeans.modules.uihandler.EarlyHandler.publish(EarlyHandler.java:68)
at org.netbeans.core.startup.TopLogging$LookupDel.publish(TopLogging.java:798)
at java.util.logging.Logger.log(Logger.java:472)
at org.netbeans.modules.project.ui.OpenProjectList.log(OpenProjectList.java:1713)
at org.netbeans.modules.project.ui.OpenProjectList.access$1000(OpenProjectList.java:124)
at org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.loadOnBackground(OpenProjectList.java:374)
at org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.run(OpenProjectList.java:274)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

I am unable to open my projects and they all are web applications (Struts2 to be precise)!!!
 
Newton Windt
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Did you ever find the solution to your problem?

I seem to have the same issue.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This looks like one of the classes that org.netbeans.modules.uihandler.Installer extends cannot be found. Those classes are in jar files in the platform/lib directory (well, that's where they are on Windows). Anyway, it probably means that the installation is corrupted. I would uninstall NetBeans, then make sure the installation directory is deleted, and then reinstall (from a fresh download).
 
Newton Windt
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Johnson wrote:This looks like one of the classes that org.netbeans.modules.uihandler.Installer extends cannot be found. Those classes are in jar files in the platform/lib directory (well, that's where they are on Windows). Anyway, it probably means that the installation is corrupted. I would uninstall NetBeans, then make sure the installation directory is deleted, and then reinstall (from a fresh download).



Thanks will try that.
 
Newton Windt
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I reinstalled Netbeans 7.1.1 and im still getting the same error except my error looks different. When i open netbeans its fine but as soon as i run my two projects which one is a client web application and the other is a server web application i get this error below. When the error hits i cant seem to right click the projects and do anything. The way i relized this issue first was when i added an operation to my webservice in the server and then tried to update the webservices methods in the client side i does not update the client and keeps hitting this error.

Any advice would be appreciated?

java.lang.NoClassDefFoundError: org/openide/util/actions/CallbackSystemAction$DelegateAction
at org.openide.util.actions.CallbackSystemAction.createContextAwareInstance(CallbackSystemAction.java:284)
at org.openide.util.Utilities.actionsToPopup(Utilities.java:2762)
at org.openide.util.Utilities.actionsToPopup(Utilities.java:2858)
at org.openide.explorer.view.TreeView.createPopup(TreeView.java:1070)
at org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1558)
at org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup(MouseUtils.java:189)
at org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased(MouseUtils.java:184)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2713)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:680)
at java.awt.EventQueue$4.run(EventQueue.java:678)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:162)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The missing class should be at platform\lib\org-openide-util.jar within the NetBeans installation directory. please check if the JAR file is there.

Which version of Windows are you using? If Vista or 7, what is you UAE setting? And exactly where did you install NetBeans? When you run NetBeans, do you right-click on it's icon and select "Run as administrator"?
 
Markus Bruederl
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also got the very same Problem with Netbeans 7.1.1 on Windows 7 x64.

The solution was:
change the security-level to full access for the installation- and all subfolders. Then it finally worked.

As i didnt find the solution on the web for over a week (also tried re-installing, different computers with same operating system etc) i guess there's currently no developer working with Netbeans under Windows 7.

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably turning off UAE would also work. Windows 7 and Vista are a little picky about allowing updates in Program Files (and Program Files (x86). Or you could configure NetBeans to "run as administrator" - see the Privilege Level on the Compatibility tab of the Properties entry when you right-click the executable in Explorer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic