How To Set Environment Variable in Windows

Environment Variable helps us to use many commands without specifying full path for its executable file.
Example,
>javac MyClass.java
instead of
C:\Program Files\Java\jdkx.x.x_xx\bin>javac MyClass.java

Why to Set Environment Variable?
Sometimes it becomes very uneasy to use application with absolute path, like in above example each time you will need to copy "MyClass.java" file in bin directory or specify full path for same file.

Alternate Solution
set path="C:\Program Files\Java\jdkx.x.x_xx\bin" 

But this is temporary solution.

Permanently set Environment Variable

Step 1
Right click on My Computer , go for
> Properties > Advance system settings > Environment Variable

Step 2
In System Variables search for "PATH"Select and click "Edit"

Step 3
Put full path of .exe directory at the current value. Include ; (semi-colon) before your new full path each time.





Note: Same for,
"ruby.exe"' is not recognized as an internal or external command,TA: operable program or batch file.
"php.exe"' is not recognized as an internal or external command

How to Generate Documentation in NetBeans (PHP Application)

To Generate Documentation in NetBeans you require few things,
1)  API documentation generator for PHPApiGen )
2) PHP Interpreter ( WAMP, XAMP )

Step 1
Extract ApiGen-x.x.x-standalone.zip file at secure location. (or inside Netbeans installation directory).

Step 2
Start NetBeans (7.4 or later) and click on Tools=>Options. Then click on "ApiGen" tab.

Step 3
Inside "ApiGen Script" input box locate your ApiGen directory extracted previously and select "apigen.php" file.

Step 4
Now go to "General" tab's Command Line Section.
Inside PHP Interpreter input box browse for WAMP or XAMP directory (hope you have installed it!) and Select "php.exe" inside "bin\php\phpx.x.x".
Click "Apply".

Step 5
Done!
Now right-click any PHP Project you are working on and click "Generate Documentation" (It may ask for "Target Directory").

Note:
If you decided to use "apigen.bat" instead of "apigen.php" you may fall in error
"php.exe"' is not recognized as an internal or external command,TA:
operable program or batch file.
You need to set Environment Variable for 'php.exe'
Check How To Set Environment Variable

How to use SASS with Netbeans in Windows

Its really easy to install SASS in Netbeans

Things you required,
1) Ruby Installer
2) SASS Editor Plugin

Step 1
Download and Install Ruby Installer, check for "gem.bat" file in "c:\Ruby200\bin\" directory

Step 2
Star Command Prompt and go for 'bin' directoy
Install SASS gem using gem install sass command






After install you can see "scss.bat" and "scss" files in same "c:\Ruby200\bin\" directory.

Step 3
Go to Tools > Options > Miscellaneous > Sass path  and add "scss.bat" path in CSS Preprocessors input box

Step 4 Optional if you already have sass editor in Netbeans
Goto Netbeans "Plugin" option and install downloaded SASS Editor Plugin


"ruby.exe is not recognized as an internal or external command"????
Check How To Set Environment Variable