Advertisement

07.14.2008 at 11:36PM PDT, ID: 23565170
[x]
Attachment Details

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

Asked by bored_shiva in NetBeans IDE, Java Programming Language, Ubuntu

Tags: Sun NetBeans, NetBeans, 6.0.1, JAVA, 6, Could not initilize class, Ubuntu 8.04, Linux version 2.6.24-19-generic running on i386

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?

ThanksStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
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)
 
 
[+][-]07.15.2008 at 02:14AM PDT, ID: 22005183

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 02:14AM PDT, ID: 22005186

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 02:19AM PDT, ID: 22005216

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 04:20AM PDT, ID: 22005789

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 05:34AM PDT, ID: 22006233

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 05:38AM PDT, ID: 22006270

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 12:15PM PDT, ID: 22010061

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 12:18PM PDT, ID: 22010083

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 01:20PM PDT, ID: 22010655

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 10:40PM PDT, ID: 22013454

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 01:40AM PDT, ID: 22014176

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: NetBeans IDE, Java Programming Language, Ubuntu
Tags: Sun NetBeans, NetBeans, 6.0.1, JAVA, 6, Could not initilize class, Ubuntu 8.04, Linux version 2.6.24-19-generic running on i386
Sign Up Now!
Solution Provided By: CEHJ
Participating Experts: 2
Solution Grade: C
 
 
[+][-]07.16.2008 at 03:24AM PDT, ID: 22014578

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628