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.
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);
var jsonString = JSON.stringify(passJSONobjectHere);
Subscribe to:
Posts (Atom)
Categories
- Apache (10)
- Apache commons (3)
- Axis2 (6)
- Carbon (1)
- Class Loader (1)
- client (2)
- Drools (1)
- Enum (1)
- equinox (3)
- How to (8)
- IDE (1)
- Intellij Idea (1)
- java (14)
- java best practice (1)
- JavaScript (2)
- jdk (1)
- JSON (2)
- Linux (1)
- Maven (5)
- Netbeans (1)
- OSGi (3)
- server (2)
- soap (1)
- soapui (2)
- Terminal (4)
- Tips (2)
- ubuntu (9)
- WSDL (2)
- XML (3)
- XSD (2)
- Zookeeper (1)