How to clear the cache in NetBeans

Close NetBeans before deleting the cache. NetBeans 7.2+, Windows 7 Cache is located in C:\Users\<username>\AppData\Local\NetBeans\Cache\. Clear the cache using the %USERPROFILE% Windows variable: del /s /q %USERPROFILE%\AppData\Local\NetBeans\Cache\ If it is set, you can also use the environment variable %LOCALAPPDATA%: del /s /q %LOCALAPPDATA%\NetBeans\Cache\ NetBeans 7.2+, Linux Cache is at: ~/.cache/netbeans/${netbeans_version}/index/ Mac OS X Cache is … Read more

Can’t make Jackson and Lombok work together

If you want immutable but a json serializable POJO using lombok and jackson. Use jacksons new annotation on your lomboks builder @JsonPOJOBuilder(withPrefix = “”) I tried this solution and it works very well. Sample usage import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder; import lombok.Builder; import lombok.Value; @JsonDeserialize(builder = Detail.DetailBuilder.class) @Value @Builder public class Detail { private String url; … Read more

Can’t create project on Netbeans 8.2

EDIT: The solution is to install JDK 8, as JDK 9 and beyond are currently not supported. If however, you already have installed JDK 8, then kindly follow the steps outlined below. The reason is that there is a conflict with the base JDK that NetBeans starts with. You have to set it to a … Read more

Error starting Tomcat from NetBeans – ‘127.0.0.1*’ is not recognized as an internal or external command

Assuming you are on Windows (this bug is caused by the crappy bat files escaping), It is a bug introduced in the latest versions (7.0.56 and 8.0.14) to workaround another bug. Try to remove the ” around the JAVA_OPTS declaration in catalina.bat. It fixed it for me with Tomcat 7.0.56 yesterday. In 7.0.56 in bin/catalina.bat:179 … Read more

How do I autoindent in Netbeans?

Shortcut: Windows: Alt+Shift+F Mac OS X: Ctrl+Shift+F (note: it’s Ctrl and not ⌘) On using above shortcut, NetBeans indents your selection. If nothing’s selected, it indents the whole file. You can even format multiple files/folders at a time! In the Projects window/sidebar, if you select one or more folders or files and use the shortcut, … Read more

Dark theme in Netbeans 7 or 8

Darcula UPDATE 2016-02: NetBeans 8 now has a Darcula plugin, better and more complete than the alternatives discussed in old version of this Answer. The attractive and productive Darcula theme in JetBrains IntelliJ is now available in NetBeans 8.0 & 8.1! The Real Thing This plugin provides the real Darcula, not an imitation. Konstantin Bulenkov … Read more

JsTestDriver on NetBeans stops testing after a failed assertion

Seems like in Chrome works fine. Regarding Firefox as in comment said it is not correct answer. I have managed to get it work partially. The issue is how netbeans handle failed tests and how jstestdriver.jar is started. I know this doesn’t solve issue but it is pointing in right direction. Steps to reproduce this. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)