Showing posts with label netbeans. Show all posts
Showing posts with label netbeans. Show all posts

Sunday, February 5, 2012

Problem running Zend commands inside NetBeans (solved)

When trying to run zf commands inside Netbeans
it didn't work until I did the following:
    1. ​Using cmd I created the .zf.ini file using the script​ "zf --setup fonfig-file"
      1. .zf.ini is in your user directory like in windows: "C:\Users\abdelhady_mohammed"
    1. Then I opened netbeans and from tools>Options>php>Zend, then choosed "Register Provider"
    2. Right click the project Zend>run command and choose "Refresh Commands"
And here we go, every thing is Ok inside Netbeans

Then I tried to run zf commands again on windows command line:
And here comes the bug, zf commands is no longer runnable on windows command line and here is the full bug report on Netbeans site:

Solution:
get the "NetBeansCommandsProvider.php" located in "D:\Boston_Dev_Env\NetBeans\php\zend"
and copy it to the Zend Library folder "D:\Boston_Dev_Env\server\ZendFramework-1.11.7\library"

and every thing will be fine then

Additional reference:
http://www.kilinjal.com/blog/how-configure-zend-tool-netbeans?page=show

Portable Netbeans

 Simply do this:
  • Make sure you have the same JDK installed (in the same paths) on the machines where you use the USB drive - or copy the JDK on the drive too. The same applies to web servers / version control systems / runtimes, whatever is applicable.
  • Download the OS-independent.zip distribution of NetBeans. Unpack it on your usb stick.
  • The directories you need to copy are the netbeans userdir (.netbeans directory), and of course your project directories.
  • Check whether you have a global netbeans.conf file: If yes, make certain it is identical to the one in your userdir to prevent unexpected behaviour in either environment.
  • In your netbeans installation directory, open /etc/netbeans.conf in a text editor.
  • Change netbeans_default_userdir="${HOME}/.netbeans/6.5rc2" to something like
    netbeans_default_userdir="X:/.netbeans/6.5" 
    assuming X is your USB sticks drive name.
  • Change the path to the JDK from #netbeans_jdkhome="/path/to/jdk" to e.g.
    netbeans_jdkhome="X:/jdk"
    Make sure to remove the hashsign (comment).
Reference: