Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.
Andre Greeff edited this page Jul 27, 2015 · 3 revisions

FAQ

I am getting the java.lang.UnsupportedClassVersionError, what can I do?

This error message is the JVM telling you the code it's trying to run is not supported by the current JVM version. As per the plugin requirements, this requires Java 8 in order to function. You can check which version your IDE is using in the Help > About screen.

Please note: NetBeans will select a Java version to use when it is installed, but does not provide any means through the IDE to change this later, even if a newer version is installed, See issue #72 for more information.

If your IDE is using an older version of Java, please install Java 8 and then use one of the two methods below.

Option 1: Edit Application Shortcut

  • Edit your NetBeans shortcut.
  • Append --jdkhome "path/to/your/JDK8" to the executable line.

Option 2: Edit Application Configuration

  • Open your NetBeans installation folder in a file explorer.
  • Open the etc folder and open the netbeans.conf file in any text editor.
  • Locate the netbeans_jdkhome property and set this to:
  • netbeans_jdkhome="path/to/your/JDK8"

Why can't I see the .editorconfig file in NetBeans' project tree?

NetBeans hides all "dot" files by default, explicitly overriding this behaviour for key files such as .htaccess, .gitignore, .gitmodules, .hgignore, etc.. The default rules do not include .editorconfig files, which is why they do not show up.

You may change this behaviour with the following steps:

  • Select Options from the Tools menu.
  • Select the Miscellaneous category.
  • Select the Files tab.
  • Edit the "Ignored Files Pattern" and modify the negative lookahead assertion group to include the .editorconfig filename.

If you are unfamiliar with regular expressions, the pattern below simply adds this rule to the default pattern from NetBeans 8.0.2. If you have already customised this pattern at all, simply take note of the location of the editorconfig string below and include it in your existing pattern.

^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!(htaccess|git.+|hgignore|editorconfig)$).*$

If you're battling to modify your regular expression pattern, you may use one of the numerous online services such as Regex101 to verify the pattern structure.

Example Screenshot