I accidentally deleted main class in NetBeans from Templates, know I cannot create any projects. Does anyone know how to retrieve it? I tried to reinstall NetBeans but it didn't work for me. So please if anyone knows how to fix this I would appreciate it very much.
Take a look here. Same problem resolved.
UPDATE
Ok. 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.
ps Net beans user dir is something like this C:\\Users\\YOUR_USER\\AppData\\Roaming\\NetBeans\\8.2\\config\\Templates I tried this and it worked.
Netbeans automatically updates your work when you clean and run. Just:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.