I run a Java program with the following command line (Edit: in NetBeans 6.8 project properties)
toto has:"tutu titi"
I had a similar problem in NetBeans and found the solution:
Edit/Add the property "application.args" in your private.properties to this:
Single quotes to mark your "argument" and two double quotes to define one "double quotes".