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
81
votes
5 answers

Can't find/install libXtst.so.6?

I'm running Ubuntu 12.10 and I'm trying to install Netbeans 7.1(or later) I have the .sh file, but it won't install, the error appears here: [2013-06-27 19:11:28.918]: at org.netbeans.installer.Installer.main(Installer.java:81) [2013-06-27…
Tropical_Peach
  • 1,143
  • 3
  • 16
  • 29
80
votes
8 answers

NetBeans IDE scaling on Windows 8/10

I'm trying to run NetBeans under Windows 8.1 on a screen with a high DPI. Windows itself has scaling enabled to 400% and everything else looks just fine. However, when I start NetBeans, it runs as if there's no scaling enabled and I just see tiny…
mmvsbg
  • 3,570
  • 17
  • 52
  • 73
80
votes
1 answer

Generate getters and setters in NetBeans

I Need to know how to have NetBeans generate getters and setters using a shortcut.
Zvjezdan
  • 931
  • 1
  • 6
  • 5
80
votes
7 answers

How to view the current heap size that an application is using?

I think I increased my heap size to 1 GB in NetBeans since I changed the config to look like this: netbeans_default_options="-J-Xmx1g ...... After I restarted NetBeans, can I be sure that my app is given 1 GB now? Is there a way to verify this?
mrblah
  • 99,669
  • 140
  • 310
  • 420
78
votes
10 answers

How do I refresh Netbeans workspace?

In Eclipse, there is something called refresh workspace or F5 that refreshes the files, to make sure to pick-up any files that are changed outside eclipse. How do i do that in Netbeans ? I am using 6.9.1 for PHP/Java development? I don't see any…
Satish
  • 6,457
  • 8
  • 43
  • 63
77
votes
10 answers

How do I get Haml to work with Rails?

I am trying to get Haml to work with my Ruby on Rails project. I am new to Ruby on Rails and I really like it. However, when I attempt to add an aplication.html.haml or index.html.haml for a view, I just receive errors. I am using NetBeans as my…
24hourCoder
77
votes
4 answers

How to compile using -Xlint:unchecked in a Maven project?

In NetBeans 7.2, I'm having trouble finding how to compile using -Xlint:unchecked in a Maven project. Under an Ant project, you can change compiler flags by going to Project Properties -> Compiling, but Maven projects don't seem to have any such…
Alexis King
  • 43,109
  • 15
  • 131
  • 205
76
votes
7 answers

Popup Message boxes

I am unsure of how to code popup message box in my methods. public String verify(){ String result = "failed"; int authcode = staffBean.getVerifyCodeByName(getLoginUserName()); if (code == authcode){ result ="success"; …
gymcode
  • 4,431
  • 15
  • 72
  • 128
76
votes
7 answers

How can I remove all breakpoints from NetBeans 6.8?

How can I remove all breakpoints from NetBeans 6.8?
user354299
  • 2,945
  • 5
  • 20
  • 10
75
votes
4 answers

How to create a Jar file in Netbeans

Well I have my source code that i have done using the IDE netbeans. Now I wanted to move this java application to a web application. For that I need to create a jar file from my source code, so that I could invoke it in ma jsp file. I have not been…
user1227433
  • 875
  • 4
  • 9
  • 9
73
votes
25 answers

netbeans shows "Waiting For Connection (netbeans-xdebug)"

I need help to configure xdebug, for debugging projects from IDE netbeans. These are the features of my components: XAMPP 1.8.2 PHP: 5.4.16 netbeans: 7.3.1 Apache: 2.4.4 (Win32) this is the final part of my php.ini file: [XDebug] zend_extension =…
pasluc74669
  • 1,680
  • 2
  • 25
  • 53
72
votes
7 answers

Debugging php-cli scripts with xdebug and netbeans?

I have managed to initiate php-cli script debug session from the IDE itself, but I need to start the debugging session from the shell / command line. These are rather complex maintenance PHP scripts which take a lot of input parameters, so entering…
wurdalack
  • 891
  • 2
  • 8
  • 6
72
votes
11 answers

How do I set Tomcat Manager Application User Name and Password for NetBeans?

I'm trying to follow a tutorial to make an extremely basic Java web application in NetBeans. When I try to run it, a dialogue box appears title "Authentication Required". Inside the dialogue box there the heading "Tomcat Manager Application" and…
Eric Wilson
  • 57,719
  • 77
  • 200
  • 270
71
votes
22 answers

Is there a way to stop NetBeans scanning projects?

I don't have much memory on my PC and a pretty weak processor. Although netbeans is by far my favorite IDE it is almost unbearable to use on my present computer because of the project scanning that starts automatically when I open the program. Is…
George
  • 796
  • 1
  • 6
  • 6
70
votes
6 answers

Editing multiple lines of code in Netbeans

Is there a way to select and edit multiple rows of code in netbeans? Visual Studio allows a similar operation where you press alt and select multiple lines using the dragging motion (left click) of mouse ?
Shashank Shekhar
  • 3,958
  • 2
  • 40
  • 52