IntelliJ cannot create new class

Now I’m almost prepared to take back all good things I ever said about IntelliJ.

When trying to create a new class in IntelliJ this little window pops up

IntelliJ new class window

IntelliJ new class window

I have tried pressing the OK button a couple of hundred times now but nothing happends.
I have also tested restarted IntelliJ, killed all java processed, tried creating new projects.
Well pretty much anything I could come up with but still no go.

IntelliJ has simply decided not to be my friend anymore.
H E L P ! ! !

What could be wrong here?
I can still go the long way around and create the files manually or use the new file (instead of class) option.

Update: Thanks to the comment from Dmitry I found a stacktrace (I also filed an issue):

2010-04-21 15:15:10,168 [ 485724]  ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 9.0.1  Build #IC-93.94 
2010-04-21 15:15:10,168 [ 485724]  ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.6.0_17 
2010-04-21 15:15:10,168 [ 485724]  ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) Client VM 
2010-04-21 15:15:10,168 [ 485724]  ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc. 
2010-04-21 15:15:10,169 [ 485725]  ERROR - com.intellij.ide.IdeEventQueue - OS: Windows 7 
2010-04-21 15:15:10,169 [ 485725]  ERROR - com.intellij.ide.IdeEventQueue - Last Action: NewElement 
2010-04-21 15:15:10,368 [ 485924]  ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(176,127),absolute(972,633),button=1,modifiers=Button1,clickCount=2] on dialog2 
java.lang.NoClassDefFoundError: Could not initialize class org.apache.velocity.runtime.RuntimeSingleton
	at org.apache.velocity.app.Velocity.setProperty(Velocity.java:122)
	...

NoClassDefFoundError sounds bad, really bad.

Update 2: Problem solved by upgrading to 9.0.2

One Response to IntelliJ cannot create new class

  1. Evgeni July 7, 2011 at 11:19 am #

    check name of your package where you try to create the ‘Test’ class. I’ve got the same issue, package was named as ‘enum’, i.e. a keyword. Try to rename package.

Leave a Reply