I'm using NetBeans and PHP. For example, I insert this code:
<?php
try {
$dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass);
foreach($dbh->query('SELECT * from FOO') as $row) {
print_r($row);
}
$dbh = null;
} catch (PDOException $e) {
print "Error!: " . $e->getMessage() . "<br/>";
die();
}
?...
Hello.I'd like to make "double-click" cli application but still don't get how.
I know I should propably somehow edit manifest but that is all. I googled ofc. but no success.
Thanks for any tips.
Here is the output from build, run, and manifest:
compile:
Created dir: /home/nick/NetBeansProjects/SemestralWork/dist
Building jar: /home/nick...
I try using xdebug with NetBeans to debug PHP. I start debug, and NetBeans waits for ever for a connection with xdebug. I have NetBeans 6.8 (latest version) with the latest MAMP package installed on my mac.
My php.ini looks like this:
[xdebug]
;zend_extension="/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/xde...
D:\j2me\MobileApplication2\nbproject\build-impl.xml:56: Classpath to J2ME Ant extension library (libs.j2me_ant_ext.classpath property) is not set. For example: location of mobility/modules/org-netbeans-mobility-antext.jar file in the IDE installation directory.
BUILD FAILED (total time: 0 seconds)
can anyone help me? i am very new in th...
When I hit TAB for indentation of code, I like it to get a real TAB. Meaning that when I select that, I only have one large thing selected. Now NetBeans is inserting just 5x spacebar when I hit TAB. Can I change that? Where?
...
My program is just a simple System.out.println("");
But netbeans cannot find the main method.
Is netbeans 6.7.1 conflict with WIN7?
Any possible error?
...
eclipse supports naming conventions for fields, parameters and local variables. For each variable type it is possible to configure a list of prefix or suffix or both. eclipse respects this configuration when generating methods or getters/setters.
is there a similar configuration option in netbeans? is there another way to achieve the sam...
I can't get project-specific licenses to work in my Netbeans File Templates. I have a template called "PHP File". The contents look like this...
<?php
<#assign licenseFirst = "/*">
<#assign licensePrefix = " * ">
<#assign licenseLast = " */">
<#include "../Licenses/license-${project.license}.txt">
?>
I also added a file template to t...
Hello.
I installed the lastest version from NetBeans IDE (6.8). I tried to install it in English, but it forces me to install it in Portuguese (OS Language). I've googled about it and I found that I should add --locale en:US when launching the program.
It almost works perfectly: some things are still in portuguese. For example, the des...
How to write first end-to-end automated test for NetBeans Platform Application on Java (not just capture & replay) which suppose run the application and test if click on the Main Menu -> File -> Exit menu item will close it?
Given: installed jdk1.6.0_17 and apache-maven-2.2.1
Then:
mvn archetype:generate -DarchetypeGroupId=org.codehau...
Hi All,
I have installed PHP using wamp server in Windows and I have give the entry for Xdebug in php.ini And Debugging not working in netbeans. How to solve this?
Thanks
...
Hi all,
I used Eclipse for several years and now I'm trying to switch to Netbeans.
Amazingally, I have had very nice experience while switching :)
One thing I wonder about - is there any eclipse-like "Problems" tabs available in the Netbeans.
Please see "Problems" tabs image if you have no idea that this is all about.
...
I'd like to run unit test for a functions library file...
that is, I don't have a class, it's just a file with helper functions in it...
for example, I've created a php project at ~/www/test
and a file ~/www/test/lib/format.php
<?php
function toUpper( $text ) {
return strtoupper( $text );
}
function toLower( $text ) {
return st...
Netbeans connection mode is usually used to connect components in the same form, but is it possible to connect components enclosed in different forms? Any way to do it using Netbeans or is it only possible with handwriting code?
...
I'm trying to debug some PHP using NetBeans PHP 6.8 with XAMPP on Windows and setup xdebug in php.ini. The step by step seem working fine but when there is a critical exception on the website in the PHP, NetBeans doesn't break on it.
I heard about adding a break-point on Exception but I couldn't find it in NetBeans 6.8. The Ctrl + Shift...
My wonderful corporate Dell crashed when "hibernating", and now NetBeans freezes when launching. (It displays the full interface, and starts "Scanning Projects", but doesn't get past there and I can't click on anything.)
I imagine there's some cache somewhere to clear out or something. Anyone know where?
...
The text for my buttons is being saved by default as a resource. But then when I click "run," the resource file it loads is the one in the "build" part of the project, not the "source" part. And they aren't the same!
For instance, one button I call "create chart". If I do "Clean and Build" it loads correctly, but after that, any changes...
I'm running GlassFish 2.1 and using NetBeans 6.7. I'd like to create a web interface to my data using JSF 1.2. Trouble is, I'm not sure which 'faces' technology to learn (that includes some good documentation). JBoss/RichFaces seem pretty good on documentation, but I'm using GlassFish.
Any thoughts? The choices appear overwhelming:
...
I am using a custom subclass of JPanel to offer me more control over the display of some images. The code to it is below.
However, in Netbeans, in design mode, I would like to be able to see the image that I am working with, instead of simply looking at the outline of the object.
There is an image attribute, but the only way I can cur...
Ubuntu 9.10
Netbeans 6.7.1
Whenever I start the debugger it crashes out with the error below.
I've set the project properties to the correct version of python, although it doesn't seem to make any difference what it is set to.
I've also noticed that the PythonConsole window reports that Python 2.5.0+ is running regardless of the versi...