Questions tagged [netbeans]

NetBeans refers to both a platform framework for Java desktop applications, and an integrated development environment (IDE) for developing with Java and other languages.

Introduction

From the official "NetBeans IDE Features" page:

NetBeans IDE lets you quickly and easily develop Java desktop, mobile, and web applications, while also providing great tools for PHP and C/C++ developers. It is free and open source, and it has a large community of users and developers around the world.

Features

From the official "NetBeans IDE Features" page:

Best support for the latest Java technologies

The NetBeans IDE provides first-class, comprehensive support for the newest Java technologies and latest Java enhancements before other IDEs. It is the first IDE providing support for JDK 7, Java EE 6, and JavaFX 2.

With its constantly improving Java Editor, many rich features and an extensive range of tools, templates and samples, NetBeans IDE sets the standard for developing with cutting-edge technologies out of the box.

Fast & smart code editing

An IDE is much more than a text editor. The NetBeans Editor indents lines, matches words and brackets, and highlights source code syntactically and semantically. It also provides code templates, coding tips, and refactoring tools.

The editor supports many languages from Java, C/C++, XML and HTML, to PHP, Groovy, Javadoc, JavaScript and JSP. Because the editor is extensible, you can plug in support for many other languages.

Easy & efficient project management

Keeping a clear overview of large applications, with thousands of folders and files, and millions of lines of code, is a daunting task. NetBeans IDE provides different views of your data, from multiple project windows to helpful tools for setting up your applications and managing them efficiently, letting you drill down into your data quickly and easily, while giving you versioning tools via Subversion, Mercurial, and Git integration out of the box.

When new developers join your project, they can understand the structure of your application because your code is well-organized.

More information on Project Management
More information on Versioning

Rapid user interface development

Design GUIs for Java EE, Java SE, and Java ME applications quickly and smoothly by dragging and positioning GUI components from a palette into the NetBeans Editor.

For Java SE applications, the NetBeans GUI Builder automatically takes care of correct spacing and alignment, while supporting in-place editing, as well. The GUI builder is so intuitive that it has been used to prototype GUIs at customer presentations.

More information on Java EE
More information on Swing GUI Builder
More information on JavaME

Write bug-free code

The cost of buggy code increases the longer it remains unfixed. NetBeans provides static analysis tools, especially integration with the widely used FindBugs tool, for identifying and fixing common problems in Java code. In addition, the NetBeans Debugger lets you place breakpoints in your source code, add field watches, step through your code, run into methods, take snapshots and monitor execution as it occurs.

The NetBeans Profiler provides expert assistance for optimizing your application's speed and memory usage, and makes it easier to build reliable and scalable Java SE, JavaFX and Java EE applications. NetBeans IDE includes a visual debugger for Java SE applications, letting you debug user interfaces without looking into source code. Take GUI snapshots of your applications and click on user interface elements to jump back into the related source code.

More information on Debugger and Profiler

Support for multiple languages

NetBeans IDE offers superior support for C/C++ and PHP developers, providing comprehensive editors and tools for their related frameworks and technologies. In addition, the IDE has editors and tools for XML, HTML, PHP, Groovy, Javadoc, JavaScript, and JSP.

Cross-platform support

NetBeans IDE can be installed on all operating systems that support Java, from Windows to Linux to Mac OS systems. Write Once, Run Anywhere, is as true for NetBeans IDE as it is for your own applications... because NetBeans IDE itself is written in Java, too!

Rich set of community-provided plugins

The NetBeans community is large and active; many users are developing new plugins all the time because NetBeans IDE is extensible and has well-documented APIs. Are you missing a feature in NetBeans IDE? Create a plugin that fills the gap and participate in making NetBeans even better than it already is!

Visit NetBeans Plugin Portal

Version information

  • Current Release version: 16

Tag recommendations

If your question is version-specific, use the tag together with an appropriate version-specific tag, such as , , , , , , , , , , , , or .

Useful links

24163 questions
69
votes
8 answers

NetBeans - shortcut for returning to previous position after invoking 'Go to Declaration'

In Netbeans I want to be able too return back to my previous position after selecting Go to Declaration (ctrl + click on variable). Similar to the option in Microsoft Visual Studio .Net IDE when I click (ctrl + -) - it will return to the previous…
ehab
  • 691
  • 1
  • 5
  • 3
68
votes
19 answers

"Sources directory is already netbeans project" error when opening a project from existing sources

I've installed NetBeans 6.9.1 and installed few updates for it. Then I've created a new project from existing sources. After a few changes I've closed it. And now I am having an error, when trying to open a new project from existing sources (the…
Dmitry
  • 835
  • 1
  • 8
  • 12
67
votes
5 answers

Search and Replace Entire Project (Netbeans)

Is there a way to do a project wide search and replace in netbeans? It seems like there should be, but I can not find any information on it. Thanks
Mahdi.Montgomery
  • 2,024
  • 4
  • 17
  • 21
67
votes
6 answers

Starting of Tomcat failed from Netbeans

I have problem with starting Apache Tomcat 6 from Netbeans IDE 7.4 (on 7.3 version I had the same troubles. Other people mentioned that this problem exist also in other versions, like 8.0 etc). What did I do: remove installed Tomcat 7 (without…
liquide
  • 1,346
  • 3
  • 20
  • 28
65
votes
10 answers

Faster search for files in Netbeans

Is there an existing plugin or tweak that speeds up the "Go To File" search in Netbeans ? Compared to Eclipse, Netbeans search is way too slow specially if one has multiple large size projects. I know I can use CTRL+O for "Go To Type" but often I…
Rahul
  • 12,886
  • 13
  • 57
  • 62
64
votes
12 answers

Xdebug for remote server not connecting

I want a team using different computers to be able to debug PHP on a remote server, but I am having a hard time getting Xdebug to work in NetBeans 7.0.1. I’ve tried many online tips, but to no avail. For the record, I have successfully installed…
Gruber
  • 4,478
  • 6
  • 47
  • 74
63
votes
9 answers

How to position the form in the center screen?

I'm a .Net developer but somehow I was task to create a simple application in java for some extra reason. I was able to create that application but my problem is how can i center the form in the screen when the application is launched? Here is my…
John Woo
  • 258,903
  • 69
  • 498
  • 492
63
votes
5 answers

Can NetBeans remove trailing whitespace and change tabs to spaces on save?

I just started to use NetBeans, and am trying to work out how to: Make it so that trailing whitespace is removed on save. I know that you can invoke it manually, but it’s annoying if you forget. Can it be done automatically on save? I want this…
cappuccino
  • 2,175
  • 5
  • 26
  • 48
63
votes
10 answers

Select, copy or cut the current line in Netbeans

In Netbeans I find keyboard shortcuts that deal with the current line of code very helpful, like: Ctrl + Shift + ↓ : duplicate Shift + Alt + ↓ : move Ctrl + E : delete Is there a shortcut for selecting, cutting or copying the current line of…
Jannie Theunissen
  • 28,256
  • 21
  • 100
  • 127
63
votes
10 answers

Highlight variable under cursor in Vim like in NetBeans

I worked in NetBeans and liked this feature: when you place cursor in a variable name all occurences of the variable are highlighted. This is very useful for quick searching all occurences of the variable. Is it possible to add this behavior to Vim?
kipelovets
  • 1,204
  • 2
  • 13
  • 16
62
votes
10 answers

Netbeans how to set command line arguments in Java

I am trying to set command line arguments in a Netbeans 7.1 Java project on Windows 7 64 bit. Netbeans is not passing the arguments I give it. I go to Project --> Properties --> Run --> and type the arguments next to "Arguments" however the…
José
  • 1,525
  • 3
  • 14
  • 12
62
votes
12 answers

Netbeans 7.2 shows "Unable to resolve identifier" , although build is successful

I'm using the Netbeans IDE 7.2 with C/C++ plugin (last version 1.18.1.1) and if I build my project everything is fine but the IDE show me errors (e.g. unable to resolve identifier ...) Anyone else have this bug and how can I solve it?
leon22
  • 5,280
  • 19
  • 62
  • 100
61
votes
8 answers

My diff contains trailing whitespace - how to get rid of it?

I've tried editing a php file in TextWrangler with line endings set to Unix, in NetBeans, and in vim. When I save the diff to a patch and then try to apply it, it gives whitespace errors. When I type git diff I can see ^M at the ends of my lines,…
beth
  • 1,916
  • 4
  • 23
  • 39
60
votes
17 answers

java.lang.RuntimeException: Uncompilable source code - what can cause this?

This error is just bizarre, my code compiles fine, I can see there are no problems with it, yet this error has just popped up. I have tried re-starting NetBeans and there is no additional exception information. What can cause this?
MalcomTucker
  • 7,407
  • 14
  • 72
  • 93
60
votes
7 answers

How to show/reveal hidden or invisible characters in NetBeans?

How can you show/reveal hidden characters in NetBeans? In other editors, if this feature is turned on, a space might be shown as a small centered dot, and a tab as a right arrow. (This feature is useful to see if a file uses tabs or spaces for…
mjs
  • 63,493
  • 27
  • 91
  • 122