netbeans

Simultaneous debugging of Java and Javascript within IDE

Is it possibe to launch grails based java web project from within Eclipse or Netbeans IDE and setup breakpoints in both java and javascript sources and be able to debug both? If so then how? I understand debugging javascript is normally done using browser based debugger such as firebug for firefox but there are situations for large pro...

Glassfish 2 Server Log

The webpage for this application does not open up after the application is run. The administration console says: "An error has occurred -C:/eepassion/UnZip/servletbasics/samples/hello2/build/web" Thank you for your help. Please see log info below: Oct 15, 2010 8:27:50 AM com.sun.enterprise.admin.servermgmt.launch.ASLauncher b...

finding empty folders and listing them

hey great community, I'm attempting to find empty folders in the CVS and list all folders that are empty in a text file. I would look in the HEAD. Would ideally use a TreeMap (string to store mailer name, boolean to store true or false) and a For loop for the scan. boolean should be set to true at first and if a mailer is empty (folder) ...

Debugging Rails in Netbeans 6.9 suddenly stopped working

Hi, Yesterday I was perfectly able to debug a rails application using Netbeans 6.9.1 (just clicking on the Debug Main Project). But now, suddenly when I try to debug I see the "Server Startup" at the bottom... but after 30 secs aprox. a message appears in the status bar saying "Cannot connect to web server, cannot show localhost:3000"....

Verifying Java Class Library in Netbeans 6.9.1

I am new to java and to netbeans so my apologies if this is a simple question. I made a 'Java Class Library' Project in Netbeans 6.9.1 I added a few classes to it and hit 'Build'. It builds with no errors. However the problem is I know there are errors. It seems as though I can make up class names and hit build and it doesnt provide m...

Connection to remote database via tunnel (using netbeans)

To get access to the remote oracle database, there has to be an open tunnel towards an allowed server that has access to the restricted ones (remote oracle database), giving the impression that the workstation is allowed to database directly. DIAGRAM :: Workstation --> allowed server (IP) --> remote Database. We can make such ...

Is there a way to make NetBeans hide specific files/folders?

I'm working on a joomla project and for debugging/type hinting/auto-complete have my whole joomla install as a project. Is there a way I can hide the folders I don't need in file or project view? Ideally I would have a project that scans all of the folders but simply displays this: administrator components com_myproject (display al...

Passing an enviornment variable to executed process in Maven

I've been banging my head against a wall for about an hour on this: I'm trying to pass a simple property (java.library.path) to exec-maven-plugin. The goal is to have it integrate with Netbeans Right Click file > Run File procedure. So I set my POM like this: <build> <plugins> <plugin> <groupId>org.codehaus.mojo...

Debugging IDE's port connection to XDebug: "Waiting to Connect"

Preamble Like many, I've spent more hours debugging my IDE’s connection to XDebug than I have using XDebug to debug my programs. I’ve gotten it to work repeatedly, but every once and a while I get the common “Waiting to connect” problem. I haven’t been able to localize what causes XDebug to work or fail. I’ve been using ubuntu for two y...

Netbeans - adding resource files to jar file with Ant

I want add some resource files (non-code text-based files) to the jar file in a Java project using Netbeans 6.9, I'd expect using Ant. I had thought that this would be reasonably simple...but after quite a bit of searching I can't find how to do it..! Any pointers in the right direction? ...

Finishing a vertical string

So this is what I have so far for my vertical string. public static void main(String[] args) { (**What do I put in here?**) } public static void vertical(String str) { String vertical = "hey now"; for (int i = 0; i < str.length(); i++) { System.out.println(str.charAt(i)); } } My teacher checked out the "out...

Quotes in command line arguments passed to Java main()

I run a Java program with the following command line (Edit: in NetBeans 6.8 project properties) toto has:"tutu titi" args is an array of 2 Strings toto has:tutu titi I want (two arguments indeed, the second) args[1] to be has:"tutu titi" How should I do that? Edit: I have already tried escaping the quotes with backslash from "...

How to connect PHP with Oracle-xe server when both reside on the same pc

Hay I ve installed oracle-xe 10g sever version on ubuntu desktop 10.10 32 bit. for installation i ve followed the these steps: [https://help.ubuntu.com/community/Oracle10g] Now im working with my dbms. its just working fine. for php setup i've followed this: [http://netbeans.org/kb/docs/php/configure-php-environment-ubuntu.html] now ...

NetBeans 6.9.1 demo (ScrumToys) - JSF 2.0 not rendered in Internet-explorer

In ScrumToys web-application (NetBeans JSF 2.0 demo) the .jsf page is not renderend in internet-explorer (I see the page source as XML). This works fine in 'proper' browsers, like Chrome and FireFox. I'm using the ScrumToys demo app provided by NetBeans 6.9.1 (running on GlassFish 3) with absolutely no changes. I'm using Internet-explor...

How to get lines in Netbeans that starts with echo or print_r?

I know this is not programming related question so to speak, but since we are programmers and we might use Netbeans for PHP development. I am wondering how can I get in Netbeans interface with search, macro or some other way all lines that start with echo or print_r aka as debug lines. ...

NetBeans not generating @author and @version of javaDoc?

NetBeans by default will not generate documentation from @author and @version tags. How do I enable this from within the IDE? ...

How to filter the files/project view in Netbeans?

I know this is not programming related question so to speak, but since we are programmers and we might use Netbeans for PHP development. I am wondering how can I get in Netbeans a selection from a list of files quickly. Suppose there are different folders for MVC pattern and I edit 1 section of it. I would like to see the 3 files that I...

Is there a way to install Python documentation to NetBeans?

Netbeans currently has intellisense, but I want documentation on methods and what they do. Is this possible on Netbeans? Maybe when pressing F1, have the doc window open. Thanks! ...

How to display a JFreeChart in a NetBeans project

This is similar to a question I asked yesterday but more specific to the problem. What is the correct method to add a JFreeChart to a NetBeans project which already contains various widgets? My updateChart() hides the entire JFrame. I'd like to add the JFreeChart to the JFrame. public class MyClass extends javax.swing.JFrame implements ...

Is it possible to run a Ruby project via Rake?

I've got a Ruby project started with NetBeans, so the Rake file has been generated. Is there a way that I can run the project over the command line? It runs fine when I use F6 through NetBeans, as does my automated test suite with Alt+F6. I'm essentially looking for something like... $ rake run Does this exist? ...