No code input window in Netbeans 8 for Java

2019-09-01 03:08发布

I am trying to learn Java using the Netbeans 8.0 IDE.

On creating a new project and .java file, instead of getting a main code input window, the main window (where the start page tab is on 1st launching netbeans), shows a checked history button, and compare mode, but nowhere to input code.

I have looked at videos, and followed the exact same few simple steps that they did, but of the code template they get, instead I get this "history" tab, and nowhere to input code.

enter image description here

enter image description here

标签: java netbeans
6条回答
再贱就再见
2楼-- · 2019-09-01 03:55

Try removing the userdir.

From the wiki at netbeans.org:

The NetBeans userdir is a directory where NetBeans stores user configuration data such as window layouts, editor settings, menu and toolbar customizations and various module settings.

By default on Windows and Mac OS X the userdir is inside a directory NetBeans in application settings folder.

On Windows this can be found at C:\Users\<username>\AppData\Roaming\

On OS X this can be found at /Users/<username>/Library/Application Support/

See a related questions here and here.

查看更多
ゆ 、 Hurt°
3楼-- · 2019-09-01 03:56

I deleted Userdirectory of Netbeans8.2 IDE and Cache. You can find these directories in ->Help-> abut tab of IDE. After deleting these directories I reopened IDE it worked fine.

Find directories in image

查看更多
来,给爷笑一个
4楼-- · 2019-09-01 03:57

You need to right-click on file -> editors -> source

查看更多
叛逆
5楼-- · 2019-09-01 03:59

From top text menu select "Window" then "Reset Window" and then restart NetBeans.

enter image description here

查看更多
Explosion°爆炸
6楼-- · 2019-09-01 04:03

Window | Reset Windows from main menu can give you back default layout with editor displayed.

查看更多
闹够了就滚
7楼-- · 2019-09-01 04:04

Just had this problem today. I was able to fix this it be clearing the NetBeans cache.

1) Delete all files under C:\Users\"user name"\AppData\Roaming\NetBeans\

2) delete all files under C:\Users\"user name"\AppData\Local\NetBeans\Cache\8.2\

3) If you have a bunch of saved projects under your user directory, e.g. C:\Users\"user name"\Documents\NetBeansProjects rename it.

C:\Users\"user name"\Documents\NetBeansProjects_save

You can copy them back when netbeans is working properly again.

查看更多
登录 后发表回答