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.
netbeans
24,164
questions
371
votes
20
answers
236k
views
Failed to allocate memory: 8
From today, when I tried to run an app in NetBeans on a 2.3.3 Android platform, it shows me that:
Failed to allocate memory: 8
This application has requested the Runtime to terminate it in an ...
228
votes
10
answers
332k
views
How can I set the JDK NetBeans runs on?
I have the older NetBeans 6.7, NetBeans 6.9, and NetBeans 7.0, which used to run on jdk1.6.0_21 and jdk1.6.0_25. Now I've removed those JDKs and only have jdk1.6.0_26 and jdk1.7.0 left, but I still ...
222
votes
22
answers
563k
views
How to fix favicon.ico error: "Failed to load resource: net::ERR_EMPTY_RESPONSE"
I downloaded the Netbeans IDE to code in HTML. When I run my code, chrome is opening and everything is working just fine. I'm getting some sort of error in the Output - Browser Log.
Failed to load ...
177
votes
1
answer
5k
views
JsTestDriver on NetBeans stops testing after a failed assertion
I have set up JavaScript unit testing with JS Test Driver on Netbeans as per this Link. However, unlike the results in that tutorial, no more tests are executed after an assertion fails. How can I ...
163
votes
6
answers
343k
views
Dark theme in Netbeans 7 or 8
Is there a way to have a dark theme in Netbeans?
157
votes
10
answers
308k
views
How do I autoindent in Netbeans?
In eclipse you can click Ctrl+I at any line, and it'll automatically indent the line or group of lines according to the indentation scheme you chose in the settings.
I'm really missing this feature ...
155
votes
20
answers
366k
views
Where should I put the log4j.properties file?
I wrote a web service project using netbeans 6.7.1 with glassfish v2.1, put log4j.properties to the root dir of project and use:
static Logger logger = Logger.getLogger(MyClass.class);
in ...
151
votes
4
answers
117k
views
Error starting Tomcat from NetBeans - '127.0.0.1*' is not recognized as an internal or external command
Both Google and Stackoverflow have shown me people with similar issues however this error is slightly different in that the IP address is suffixed with an asterisk:
NetBeans 8.0.1 is giving me the ...
146
votes
21
answers
149k
views
Can't make Jackson and Lombok work together
I am experimenting in combining Jackson and Lombok. Those are my classes:
package testelombok;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation....
131
votes
14
answers
305k
views
Can't create project on Netbeans 8.2
I have windows 10 OS, I just downloaded JDK 9, and Netbeans 8.2 version with All features. When I want to create (Java) project, it just can't do it. Doesn't give me an error or something, just this ...
125
votes
13
answers
275k
views
How to clear the cache in NetBeans
I created a project in NetBeans, and I would like to clear the NetBeans cache.
I'm running NetBeans 7.0.1 on a Windows 7 machine.
How do I do this?
125
votes
4
answers
84k
views
Netbeans: how to change @author
When creating a new class or interface in Netbeans IDE, an "@author ...." tag appears. How to change its value? If possible, I would like to change it by using Netbeans menu and not by editing some ...
123
votes
19
answers
209k
views
How to increase font size in NeatBeans IDE?
I just bought a new monitor that's rather large and I am having a lot of trouble reading the text on my editor. I tried increasing the font size the usual way by going to
Tools >> Options >> Fonts &...
123
votes
5
answers
118k
views
Warning "Do not Access Superglobal $_POST Array Directly" on Netbeans 7.4 for PHP
I've got this message warning on Netbeans 7.4 for PHP while I'm using $_POST, $_GET, $_SERVER, ....
Do not Access Superglobal $_POST Array Directly
What does it mean? What can I do to correct this ...
122
votes
5
answers
78k
views
How can I configure NetBeans to insert tabs instead of a bunch of spaces?
When I hit Tab for indenting code, I like to get a real tab. Meaning that when I select that, I only have one large thing selected. NetBeans inserts 5 spaces instead of a tab when I hit Tab. Is there ...
116
votes
31
answers
158k
views
How to improve Netbeans performance?
Is there a real way to get Netbeans to load and work faster?
It is too slow and gets worse when you have been coding for some time. It eats all my RAM.
I am on a Windows machine, specifically ...
115
votes
7
answers
174k
views
Changing java platform on which netbeans runs
I am using Netbeans 6.7. I had first installed Java 1.5 before installing Netbeans. When i installed Netbeans it took Java 1.5 as the default version. Then i installed Java 1.6 on my machine. I need ...
104
votes
7
answers
143k
views
Javadoc: line breaks without HTML-tags?
Sorry for a probable FAQ kind of question, but I just can't find the answer.
As far as I remember Eclipse, a blank line in a Javadoc comment is displayed (in in-source Javadoc popups) as a line break ...
103
votes
19
answers
520k
views
What is the default username and password in Tomcat?
I installed Netbeans and tryed to access the server's manager using: (id/pass)manager/manager, admin/admin, system/password... None of them worked.
100
votes
8
answers
146k
views
How to change file encoding in NetBeans?
I want to change encoding of file in NetBeans IDE (ver 6.9.1), let's say from ANSII to UTF-8. How can I do that?
EDIT: I will be more precise. I don't want to change the default encoding in NetBeans. ...
96
votes
3
answers
60k
views
what should be in .gitignore file for a netbeans java project?
What should be the content of the .gitignore file for a java project in netbeans?
93
votes
8
answers
190k
views
JAX-WS client : what's the correct path to access the local WSDL?
The problem is I need to build a web service client from a file I'm been provided. I've stored this file on the local file system and, while I keep the WSDL file in the correct file system folder, ...
91
votes
16
answers
179k
views
javac: invalid target release: 1.8
I recently downloaded JDK 1.8.0.0_06 that comes bundled with NetBeans. I then got to find out that my JavaFx project, that I have been developing in Java 1.7 won't compile in Java 1.8, and so I ...
91
votes
11
answers
61k
views
Leaking this in constructor warning
I'd like to avoid (most of the) warnings of Netbeans 6.9.1, and I have a problem with the 'Leaking this in constructor' warning.
I understand the problem, calling a method in the constructor and ...
90
votes
1
answer
16k
views
Netbeans: Automatically Select Current File in Projects
How can I get Netbeans to automatically select (highlight) the currernt file in the Project window? Whenever I select a file in an editor tab I would like the project window to move to that file (...
85
votes
7
answers
164k
views
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 ...
85
votes
2
answers
34k
views
How to turn off a weird "box" cursor and selection behavior in Netbeans?
I have some kind of weird behavior in Netbeans. I guess I accidentally entered some key combination which messed up the cursor and selection behavior. In the image you'll see what I mean: normally, if ...
85
votes
8
answers
43k
views
Highlighting modified lines in Eclipse
In netbeans, if I open a file which is under version control the lines which are modified are highlighted in the left. (green for new lines and blue for modified lines)
Is it possible to get a ...
85
votes
10
answers
75k
views
Code cleanup in netbeans
Is there something similar to the Eclipse cleanup rules (Preferences > Java > Code Style > Clean Up) in NetBeans?
The cleanup rules in eclipse will allow you to clean things up like organizing ...
85
votes
5
answers
78k
views
Converting a Netbeans project to a Maven enabled project
How can I transition a Netbeans generated project into accepting a Maven configuration? There are options to create Maven based projects, but there is nothing (that I've found so far) to add Maven ...
82
votes
5
answers
29k
views
Netbeans 7.4 introduces "10 lines max" per method rule. Where does this rule come from? [closed]
NetBeans 7.4 beta is currently available for public download, and it introduces a weird warning rule by default:
Method length is 16 lines (10 allowed)
My question is: Is this an accepted code ...
81
votes
5
answers
232k
views
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....
80
votes
8
answers
89k
views
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 ...
80
votes
1
answer
166k
views
Generate getters and setters in NetBeans [closed]
I Need to know how to have NetBeans generate getters and setters using a shortcut.
79
votes
4
answers
44k
views
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, ...
78
votes
10
answers
70k
views
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....
77
votes
10
answers
56k
views
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 ...
76
votes
7
answers
695k
views
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 ==...
76
votes
7
answers
56k
views
How can I remove all breakpoints from NetBeans 6.8?
How can I remove all breakpoints from NetBeans 6.8?
75
votes
4
answers
258k
views
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 ...
73
votes
25
answers
89k
views
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 ...
72
votes
7
answers
81k
views
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 ...
72
votes
6
answers
46k
views
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 ...
72
votes
11
answers
327k
views
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 ...
71
votes
22
answers
88k
views
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 ...
70
votes
8
answers
22k
views
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 ...
69
votes
19
answers
118k
views
"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 ...
68
votes
5
answers
80k
views
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
67
votes
6
answers
156k
views
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 ...
65
votes
10
answers
67k
views
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 ...