user3693167
user3693167

Reputation: 813

How to recover java folder in NetBeans 8.0>Tools>Templates

I accidentally deleted the java folder in Tools -> Templates in NetBeans 8.0. Now it does not show me the option to make a Java class. I reinstalled netbeans, but it did not help.

Could you please help me to recover it?

enter image description here

Upvotes: 0

Views: 459

Answers (2)

Blaskowitz
Blaskowitz

Reputation: 93

An easy to recover your Java template is to go to Tools->Templates and delete another template at random (say the HTML one) then click the Revert to Default button at the right and your HTML and Java templates will be recovered.

P.S. I'm guessing you were trying to remove that author: thing in the template, so a good way to do that is by going to Tools->Templates->Java->Java class->Open in Editor and you can modify freely your template.

Upvotes: 0

Martin Krauskopf
Martin Krauskopf

Reputation: 305

Close NetBeans IDE, go to NetBeans userdir, then to config/templates directory and delete Classes_hidden file.

When NetBeans IDE is started again templates for Java are back.

Upvotes: 3

Related Questions