We help IT Professionals succeed at work.
Get Started

NetBeans 6.0.1  can't create new projects or classes in ubuntu 8.04

1,436 Views
Last Modified: 2013-12-14
Every time I try to create a new project, or even a new class in an existing project, Netbeans gets 25% into the creation, and then blows up with an error message like the one below. It's not always the same message, but more often than not it would include a bit about "NoClassDefFoundError: Could not initialize class" or something similar.

I've submitted this to NetBeans several times, and I know that many people encounter this problem. Does anyone know if there is a solution/workaround for this situation?

Thanks
java.lang.NoClassDefFoundError: Could not initialize class org.netbeans.libs.freemarker.RsrcLoader
	at org.netbeans.libs.freemarker.FreemarkerEngine.initFreeMarkerConfiguration(Unknown Source)
	at org.netbeans.libs.freemarker.FreemarkerEngine.eval(Unknown Source)
	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:232)
	at org.netbeans.modules.templates.ScriptingCreateFromTemplateHandler.createFromTemplate(Unknown Source)
	at org.openide.loaders.MultiDataObject.handleCreateFromTemplate(Unknown Source)
	at org.openide.loaders.DefaultDataObject.handleCreateFromTemplate(Unknown Source)
	at org.openide.loaders.DataObject$CreateAction.run(Unknown Source)
	at org.openide.loaders.DataObjectPool$1WrapAtomicAction.run(Unknown Source)
	at org.openide.filesystems.EventControl.runAtomicAction(Unknown Source)
	at org.openide.filesystems.FileSystem.runAtomicAction(Unknown Source)
	at org.openide.loaders.DataObjectPool.runAtomicAction(Unknown Source)
	at org.openide.loaders.DataObject.invokeAtomicAction(Unknown Source)
	at org.openide.loaders.DataObject.createFromTemplate(Unknown Source)
	at org.openide.loaders.DataObject.createFromTemplate(Unknown Source)
	at org.netbeans.modules.java.project.NewJavaFileWizardIterator.instantiate(NewJavaFileWizardIterator.java:158)
	at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(Unknown Source)
	at org.openide.loaders.TemplateWizard.handleInstantiate(Unknown Source)
	at org.openide.loaders.TemplateWizard.instantiateNewObjects(Unknown Source)
	at org.openide.loaders.TemplateWizardIterImpl.instantiate(Unknown Source)
	at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(Unknown Source)
	at org.openide.WizardDescriptor.callInstantiateOpen(Unknown Source)
	at org.openide.WizardDescriptor.callInstantiate(Unknown Source)
	at org.openide.WizardDescriptor.access$1600(Unknown Source)
	at org.openide.WizardDescriptor$Listener$2$1.run(Unknown Source)
	at org.openide.WizardDescriptor$Listener$2.run(Unknown Source)
	at org.openide.WizardDescriptor.lazyValidate(Unknown Source)
	at org.openide.WizardDescriptor.access$1200(Unknown Source)
	at org.openide.WizardDescriptor$Listener.actionPerformed(Unknown Source)
Caused: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.openide.util.WeakListenerImpl$ProxyListener.invoke(Unknown Source)
Caused: java.lang.reflect.UndeclaredThrowableException
	at $Proxy17.actionPerformed(Unknown Source)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:6041)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5806)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4413)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2440)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
	at java.awt.Dialog$1.run(Dialog.java:1045)
	at java.awt.Dialog$3.run(Dialog.java:1097)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1095)
	at org.netbeans.core.windows.services.NbPresenter.superShow(Unknown Source)
	at org.netbeans.core.windows.services.NbPresenter.doShow(Unknown Source)
	at org.netbeans.core.windows.services.NbPresenter.run(Unknown Source)
	at org.netbeans.core.windows.services.NbPresenter.run(Unknown Source)
	at org.openide.util.Mutex.doEventAccess(Unknown Source)
	at org.openide.util.Mutex.readAccess(Unknown Source)
	at org.netbeans.core.windows.services.NbPresenter.show(Unknown Source)
	at java.awt.Component.show(Component.java:1422)
	at java.awt.Component.setVisible(Component.java:1375)
	at java.awt.Window.setVisible(Window.java:806)
	at java.awt.Dialog.setVisible(Dialog.java:985)
	at org.openide.loaders.TemplateWizard.instantiateImpl(Unknown Source)
	at org.openide.loaders.TemplateWizard.instantiate(Unknown Source)
	at org.netbeans.modules.project.ui.actions.NewFile.doPerform(Unknown Source)
	at org.netbeans.modules.project.ui.actions.NewFile.access$200(Unknown Source)
	at org.netbeans.modules.project.ui.actions.NewFile$PopupListener.actionPerformed(Unknown Source)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1261)
	at java.awt.Component.processMouseEvent(Component.java:6041)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5806)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4413)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2440)
	at java.awt.Component.dispatchEvent(Component.java:4243)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Open in new window

Comment
Watch Question
CERTIFIED EXPERT
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 1 Answer and 13 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE