Saturday, August 25, 2012

How to send http post request using apache commons httpclient




Install Netbeans 7.2 in Ubuntu 11.10

When I try to install Netbeans IDE by downloading netbeas*.sh file from the Netbeans website and run it in terminal, it say installation is not completed please find the log file and try again. I tried with serveral netbeans.sh files , even several versions but result is the same. After that i tried by giving path to javahome using "sh netbeans*.sh  --javahome /path/to/JDK/home ". But still i get the same error message.

Somehow I could able to solve this issue using pack which provided by Oracle. In that pack they have bundle JDK and Netbeans 7.2 together. You can find it in JDK 7u6 with Netbeas 7.2 post published by Oracle. You need to do is accept the license agreement and download it. Then you can run it using sh command as usual.

Thanks,
Shameera.

Friday, August 10, 2012

How to Convert JSON object to String in JavaScript

If you have JSON object and you need to convert it to string you just need to use stringify method and pass your JSON object to it as a method parameter. see the example below.
 
var jsonString = JSON.stringify(passJSONobjectHere);


Sample Text

Website counter

Categories