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
1 answer

Netbeans JDK Calibration 8.1

How to do JDK calibration using Netbeans 8.1. I've googled some and found this link here. It says "choose Profile > Advanced Commands > Run Profiler Calibration from the main menu But I can't find it, there is no Advance Commands in my menu.
Adelin
  • 18,144
  • 26
  • 115
  • 175
6
votes
1 answer

"We had this mapping values are not allowed here" on YAML tag

I have a .yml file open in Netbeans 8.1 which looks like the following: --- rules: - !tp.aoi.topology.TopologyRule labels: - empty_A output: - entry_B Netbeans has a squiggly red line under the -…
karobar
  • 1,250
  • 8
  • 30
  • 61
6
votes
1 answer

Why doesn't running test-with-groovy from ant command line in a netbeans project run the tests?

I've got a netbeans project, and I've got groovy in it as well for spock testing. When I right-click on the project and say test, it runs a task called test-with-groovy but when I run ant test-with-groovy the tests are compiled but not run. I feel…
vextorspace
  • 934
  • 2
  • 10
  • 25
6
votes
3 answers

NetBeans "Variable $out seems to be uninitialized"

While in general hints are a good thing, there's a situation which I find pretty annoying and was wondering if there's an easy way around it. Consider a function which has an output-only variable: function dumb_foo($param1, $param2, &$out = null) { …
Collector
  • 2,034
  • 4
  • 22
  • 39
6
votes
2 answers

JavaDB - Checking if a database exists

We created a java application which uses the JavaDB database in Netbeans IDE. We want the program to check every time it starts if the database's tables have already been created, and otherwise create them. How do we do that? thanx
smash
  • 61
  • 1
  • 2
6
votes
3 answers

How to migrate Java code to a more recent jdk (e.g. 1.8)

What is the best way to migrate Java code of an older jdk (1.5) to a more recent Java version (1.8) to provide from its new features and improvements. We have a large Java jdk 5 code base and want to migrate to jdk 8. There are a lot of compiler…
R. Oosterholt
  • 7,720
  • 2
  • 53
  • 77
6
votes
3 answers

Netbeans stuck at startup

I was working with a big project on Netbeans. I attached some source code on third party library and all went smooth. Today I have the following popup message (I already had seen before obviously): The file [...] cannot be safely opened with…
Razlo3p
  • 455
  • 2
  • 7
  • 28
6
votes
2 answers

Netbeans: Wrapping code around a word in HTML?

If I'm in Netbeans and I want to wrap a div tag around the sentence "hello world", I know I can start typing a div on the left side then press CTRL + Space to finish the div tag on the left side of the sentence. However, is there a shortcut such…
user5418206
6
votes
3 answers

Other Threads stops when one thread reaches its destination

I am currently working on understanding the Java concept of multithreading. I went through a tutorial which uses the Tortoise and the Hare example to explain the concept of multithreading, and to a large extent I understood the syntax and the logic…
6
votes
3 answers

netbeans 8.0.2 - can not print utf-8 characters correctly

As title says, I'm using Netbeans 8.0.2, on Windows 7 OS. I saw many different topics about this and tried different solutions, but none really helped. So characters like [š, ć, đ, ž, È, æ] are displayed as � or squared, depending on the font. Here…
Kapparino
  • 988
  • 11
  • 33
6
votes
1 answer

How do I delete all the comments in all the project from Netbeans?

I need to modify a code but it has so many unused comments like this: /* 6: */ import java.util.List; /* 7: */ import org.apache.ibatis.session.SqlSession; /* 8: 7 */ import org.apache.ibatis.session.SqlSessionFactory; /* 9: */…
Midoes
  • 89
  • 1
  • 4
  • 9
6
votes
3 answers

restful webservice with xml or json as parameter

I have a simple question the answer to which I have been trying to find out over the restricted internet connection in my office but to no avail. 1) How to create a restful web service in java preferably using netbeans that accepts xml and/or json…
wib
  • 425
  • 3
  • 17
6
votes
2 answers

How to generate test-output folder from testng tests?

How to generate the test-output folder for a testNG test? I am trying to get the default testng report, index.html Netbeans7/windows7 I made a simple testng test case, ran it in netbeans 7, and here is the result. I see no test-output. I am…
stuart
  • 1,785
  • 2
  • 26
  • 38
6
votes
0 answers

Exception while deserializing object in Debug Mode

I am doing something wrong here I guess, but I can't figure out what causes the error. It's my first try at custom serialization. I am storing objects in a database in a BLOB field. At some point I read them again. Here is the class that is…
Moh-Aw
  • 2,976
  • 2
  • 30
  • 44
6
votes
2 answers

screen tag in css showing error in netbeans?

I'm creating a sample application using netbeans having some css files in that. I'm using following tag: @media screen and (max-width: 320px) { #hero{height: 480px;} .herocontent{padding-top: 100px; padding-bottom: 30px;} } This tag is…
khanam
  • 335
  • 1
  • 4
  • 19