netbeans

Killing this NumberFormatException

I'm getting a NumberFormatException on the Integer.parseInt() method. I know this exception is produced when something like "ab" is passed to the method, but I'm at a loss finding where this is happening. How can I fix this? I'm using Netbeans and trying to debug putting a watch on the caseStartLineSplitted[0] variable and then hitting...

Problem in getting attributes from webservice to servlet when the return type of operation in webservice is STRING []...

I made a Webservice Operation whose return type is STRING [] Following is the code @WebMethod(operationName = "authorize") public String [] authorize(@WebParam(name = "Username") String Username) { CAuthorization CA = new CAuthorization(); String [] Result= null; try { Result = CA.CheckAuthorization(Username); ...

Launching an arbitrary executable over a file on Netbeans

We want to add command-line support to Netbeans, as in being able to run any program (using the full path of the current file as the argument) directly from the IDE. The same way you can do it already on Notepad++ with the Run tool. Apparently there is a plugin called VCS Generic Command-Line Support that offers this functionality, but ...

How to filter files when opening using NetBeans?

I'm looking for a way to filter files in an "Open" window. I'm using NetBeans IDE 6.5. I did some research, and this is what i came up with, but for some reason it's not working. //global variable protected static FileFilter myfilter; //in declaration of variables fchoLoad.setFileFilter(myfilter); //inside main myfilter = .... (i actu...

Always get authentication failure when use svn with netbeans.

I am trying Netbeans subversion features, I found when I try to commit to my googlecode subversion repository, I always get authentication failure. I am 100% sure didn't input the wrong username or password, and I have tested this on another computer and everything works just fine. What might cause this problem? ...

Problem running tests under Netbeans

I am running some Junit tests and Netbeans behaves strangely giving the report in "Output" window: Testcase: warning(junit.framework.TestSuite$1): FAILED No tests found in uk.ac.cam.ch.wwmm.chemicaltagger.ChemistryPOSTaggerTest junit.framework.AssertionFailedError: No tests found in uk.ac.cam.ch.wwmm.chemicaltagger.ChemistryPOSTa...

NetBeans / Java Launch Error

Hello, When I launch NetBeans (version 6.7.1) I get an error: http://78.46.92.11/errors/netbeans-launch-error.jpg It is the first time when I see it. I haven't had problems like this one before. It's the first time when I open NB and see such error. Also, when I try to open a project I get another error: http://78.46.92.11/errors/ne...

JFile chooser window?? How do I filter files?

In NetBeans, there is an object called a JFileChooser. I wanted to ask how you can set up a filter in order to just show files that have a .wds extension. .wds is an extension I use in my program. ...

How can I pass command line arguments to a program via Netbeans?

I want to use my args array. I mean this array: public static void main(String[] args) Where can I run something like java Test one two three? ...

Enabling assertions in Netbeans

I wanna do something like java -enableassertions com.geeksanonymous.TestClass How do I do this? ...

javax.swing.grouplayout not exist in jdk 1.5

I developed a java application with netbeans. It used jdk 1.6. It works fine. But now the requirement is I need to build the jar for the application from the .java files in another machine without netbeans and where jdk 1.5 is used. I cannot upgrade that machine to jdk 1.6. Is there any way I could make my java files compile and work ...

NetBeans: Specifying html for Applet which uses JSObject for debugging

I would like to specify html for my applet and debug it in NetBeans. The helpful is following: My applet class is MainApplet. I put MainClass.html in the same folder with MainApplet.java. After this I run applet via right click on file in NetBeans and selecting Debug "MainApplet.java". It looks like applet tag from MainApplet.html is us...

netbeans: how can i add an included directory for code completion in php

Hi. i'm using Zend Framework classes and i don't get code completion for them because the library directory of Zend Framework in not inside my project. is there a way to tell netbeans to recognize the zend framework directory in order for the code completion to work? thanks ...

Using miglayout with netbeans.

I'm trying to use miglayout within the netbeans IDE. Ive placed the miglayout files in the right place and then imported using: import net.miginfocom.swing.MigLayout; at the top of my file but it states that "package net.miginfocom.swing does not exist" Any ideas on how I can get miglayout working withing netbeans? Any way possible? ...

how can I check the compiler and runtime in netbeans??

in one of my questions ,somebody said that I have to make sure that I'm not using compiler 1.6 and 1.5 runtime when i want to execute or debug my program,but I don't know how can i check compiler and runtime in NetBeans ,I am beginner with NetBeans. my question was: **I debug my project and the result was : debug: Have no FileObject fo...

In-MemoryDB: create schema in 'setUp()' of Unit Testing: Netbeans (6.5.1) Hibernate (3) Junit(3), HSQL (1.8)

What are the steps needed to setup an in-memory DB, build the schema automatically with Hibernate's 'hbm2ddl' tool within a Junit (3) 'setUp()' using Netbeans 6.5.1 ? I'm not using Hibernate annotations - just a mapping file. For the actual code, I want to use an on-disk database of course. [that is the Junits live a separate 'test' pac...

Creating Java UML Automatically in NetBeans 6.7

I have three packages in NetBeans 6.7 that i want to generate a UML Class diagram automatically for. I have created the new Model by reverse engineering my project, but when i highlight all three packages under the 'Model' heading and select 'Create diagram from selected elements' i just end up with 3 green boxes. I can create separate d...

Eclipse PDT vs. NetBeans for PHP development

How does Eclipse PDT compare to NetBeans for PHP development? I just bought a new computer with Windows 7 and I'm starting to set up a development environment for PHP. Has anyone used both IDEs lately and could make a quick comparison? If you know what major frameworks are supported, that would be great too. ...

Warning on standard headers after upgrading to NetBeans 6.8...

After upgrading to NetBeans 6.8 on my Mac, some standard headers generate a warning. The warning is "There are unresolved includes inside <string>". <string> is just an example and <iostream> and <map> have the same warning. The project builds and runs fine; however, I would like to resolve these warnings. Has anybody else seen this ...

How to increase mouse scroll wheel speed in NetBeans?

Loving the switch from Eclipse to NetBeans. Anyone know how to increase the number of lines scrolled using the mouse wheel in the editor window? Currently it only goes one at a time -- i'd like it to do at least three. ...