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
6
votes
2 answers

X cannot be added because it is already mapped to the entities. X entity class and the entity is not in current project source

I'm creating a new NetBeans EE Enterprise Application, and when I try to create Entity classes from database (Customer from the sample database), I can't select it because of this error : Any idea? I'm using NetBeans 7.3 with Glassfish 3.1.2.
Rob
  • 15,732
  • 22
  • 69
  • 107
6
votes
3 answers

Difference between PhoneGap and Cordova and which one should we install?

I have been tasked with developing an Android and iOS application with PhoneGap (http://phonegap.com/) However, as I read, things start to get really complicated: Some people say Cordova (http://cordova.apache.org/) is now PhoneGap, others say…
Placeholder
  • 4,651
  • 6
  • 33
  • 35
6
votes
2 answers

Java Swing: Add a component by code in NetBeans

I'm using NetBeans, and I've a JFrame where I added a JPanel to it using the NetBeans's palette. I want to add a JRadioButton manually to that JPanel, so this is the code I tried in the constructor : ButtonGroup group = new…
Renaud is Not Bill Gates
  • 1,684
  • 34
  • 105
  • 191
6
votes
3 answers

How can I use an external jar in an Android project in NetBeans?

I need to create an Android library which I can include as a jar in any Android application. I use NetBeans 6.8, the nbandroid plugin, and the Android SDK. The steps I took so far are: 1) Create the library project, with android.jar included to have…
Alpha Hydrae
  • 2,891
  • 6
  • 26
  • 24
6
votes
1 answer

Netbeans C/C++ JavaDoc code-completion

I am developing C++ in NetBeans 6.7.1. When I press CTRL + space for autocomplete there is shown only method's signature. I am using JavaDoc for commenting my code but NetBeans doesn't show it. I have installed Doxygen plugin but it is only for…
Gaim
  • 6,734
  • 4
  • 38
  • 58
6
votes
3 answers

Spring, Thymeleaf and localized strings

I am new to using Spring and Thymeleaf and I can't figure out where to put my localization .properties files. I have this Bean: @Bean public MessageSource messageSource() { ReloadableResourceBundleMessageSource messageSource = new…
Chris Margonis
  • 935
  • 11
  • 16
6
votes
2 answers

Add tomcat server in netbeans

I am using netbeans and when I create a new web application project I click the "Add" to add a server cause in a tutorial they are using tomcat and not glassfish. I then choose Tomcat 6.0 from the list and the next page is displayed where I have to…
ajsie
  • 77,632
  • 106
  • 276
  • 381
6
votes
6 answers

Netbeans build failure

Brand new to netbeans and working on the address-book tutorial. I am able to run the program without issues but when I build I get the following error. I have yet to find any possible solutions to the issue Failed to execute goal…
user2692751
  • 91
  • 1
  • 4
6
votes
1 answer

Netbeans errors "The attribute target is not defined in the component outputStylesheet"

I have entered the following code: The problem is that it is giving me an error on target="body" saying: The attribute target is not defined in the component outputStylesheet In…
keith Spiteri
  • 259
  • 1
  • 6
  • 22
6
votes
2 answers

Java- RuntimeException- Uncompilable source code - Erroneous tree type

I'm new in Java also I'm new in this website, so I'm sorry if the error is obvious, but I got an error, that I dont know what it means, I have try everything to fix it. I'm currently writing a basic aplication library, with some swing interface,…
MadNobody
  • 75
  • 1
  • 3
  • 8
6
votes
6 answers

Tell Netbeans to forget about SVN

Using Netbeans I once checked out a project from a SVN repository, just to test SVN functions in Netbeans. Now, everytime I create a new project, or open an existing project not under source control, Netbeans "thinks" is under version control in…
mmutilva
  • 18,688
  • 22
  • 59
  • 82
6
votes
4 answers

Java - How do I use a class file?

I'm new to Java and am wondering about how to import class files into netbeans and use it. I understand that a class file is machine-readable byte code but I don't care what's going on under the hood. I'd just like to import it into my current…
ShrimpCrackers
  • 4,388
  • 17
  • 50
  • 76
6
votes
1 answer

Can NetBeans 7.4 have JDK 1.6 as a default platform?

I am using Netbeans to work mostly on Java Core Applications that have been created and need to run on Java 6. I have Java 6, 7 and 8 installed on my machine and have them all available in NetBeans to configure my projects. However, since NetBeans…
Christian Kullmann
  • 558
  • 1
  • 7
  • 21
6
votes
6 answers

How to create executable .jar file with netbeans

I'd like to make "double-click" cli application but still don't get how. I know I should propably somehow edit manifest but that is all. I googled ofc. but no success. Thanks for any tips. Here is the output from build, run, and…
landscape
  • 75
  • 3
  • 5
  • 8
6
votes
2 answers

How can I setup compass on netbeans 7.4

There is a feature in netbeans 7.4 that allows scss and less to auto compile on save. I have managed to set up scss to compile but I am having problems compiling scss files using compass. Here is an example error: Syntax error: File to import not…
Dieter Gribnitz
  • 5,062
  • 2
  • 41
  • 38