Unable to locate tools.jar

Unable to locate tools.jar

Reason: In the path setting, instead of jdk, jre may be set. Solution: Please ensure the ant path like below, set ANT_HOME=D:\apache-ant-1.8.4 set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0 set PATH=%PATH%;%ANT_HOME%\bin;%JAVA_HOME%\bin   511 total views, no views today

511 total views, no views today

Hudson project build

Hudson project build

Step 1: Download the hudson war file from the below link, http://hudson-ci.org/download/war/ Step 2: Open the command prompt and go to the location of hudson war file that you have downloaded and type “java -jar hudson.war”. hudson.war is the exact name of the file in your system or location. It may be hudson-2.2.war or hudson-2.0.war etc…….. After you run you have to get the output like below, If you see the error output like below then change the address of…

Read More Read More

716 total views, no views today

Txtweb php hello world

Txtweb php hello world

Step 1: Create a file called hello.php under public_html\agn folder <html> <head> <meta name=”txtweb-appkey” content=”1ac539c0-3df6-4e45-9e83-337889a858e1″> </head> <body> <?php echo “hello naveen welcome man..!!”; ?> </body> </html> location you have to store in web host is: public_html/agn/hello.php Step 2: Check this by typing your domain name/agn/hello.php Example: if your domain name is ngdeveloper.com then you have to check your ouput by typing www.ngdeveloper.com/agn/hello.php in the browser. Ouput you will get is: hello naveen welcome man..!! Step 3: Login with your credentials…

Read More Read More

906 total views, no views today

Selling a product on ebay

Selling a product on ebay

Step 1: Register or sign up for ebay account if you dont have or simply login with your account. Step 2: Create a paisapay account to receive the amount from ebay. Its mandatory. Step 3: Click the “sell” tab which is in right top. Step 4: Start selling the product by simply clicking start selling button in the next screen. Step 5: Fill all the details regarding sellers, product review, price details, shipping details etc..   Revert me if you…

Read More Read More

691 total views, no views today

Perl path setting in windows 7

Perl path setting in windows 7

Step 1: Before path setting you can see the command prompt window like this, Step 2: setting path through system properties Right click on computer -> Properties -> Advanced system settings -> Advanced tab -> Environment variables -> System variables -> edit the path and add this, “C:\xampp\perl\bin” (location of perl bin) Step 3: Setting path through command prompt, Difference between step2 and step3 are, 1. Setting path through system properties is one time work. But setting path through command…

Read More Read More

649 total views, no views today

Perl Hello world CGI in xampp server

Perl Hello world CGI in xampp server

Download Xampp from http://www.apachefriends.org/en/xampp-windows.html Step 1: Create a file named javadomain.cgi and paste the below code, #!”C:\xampp\perl\bin\perl.exe” print “Content-type: text/html\n\n”; print “<H1>Hello World</H1>\n”; #!”C:\xampp\perl\bin\perl.exe” is the location of perl.exe. Step 2: Save this file in C:\xampp\htdocs Step 3: Open the xampp control panel. which is in c:\xampp. Step 4: Start the servers,   Step 5: Check whether the server is on and working fine by typing localhost in the browsers, if you didn’t get the above window, then once again open…

Read More Read More

2,015 total views, no views today

Perl Hello World

Perl Hello World

Step 1: Create a text file named HelloJAVADOMAINdotIN.pl and copy this below single line,   print “Hello JAVADOMAINdotIN\n”;   Step 2: Save this file in your perl directory bin folder. Ex: C:\xampp\perl\bin Step 3: Open the command prompt and run the file like this, “perl HelloJAVADOMAINdotIN.pl”  then you can see the output like this,     Thanks for reading this post………!!!   566 total views, no views today

566 total views, no views today

Java URLDecoder sample program

Java URLDecoder sample program

Program: package com.ngdeveloper.com; import java.io.UnsupportedEncodingException; import java.net.URL; import java.net.URLDecoder; import java.net.URLEncoder; public class ComparePrintandSystem { static String intro="I am naveen kumar working @ www.ngdeveloper.com"; public static void main(String[] args) throws UnsupportedEncodingException { System.out.println("Input string is "+intro); String encodedurl = URLEncoder.encode(intro,"UTF-8"); System.out.println("After encoding the INPUT " +encodedurl); String decodedurl = URLDecoder.decode("After decoding the encoded input "+encodedurl,"UTF-8"); System.out.println(decodedurl); } }    Output: Input string is I am naveen kumar working @ www.ngdeveloper.com After encoding the INPUT I+am+naveen+kumar+working+%40+www.ngdeveloper.com After decoding the encoded input…

Read More Read More

589 total views, no views today

URLEncoder with sample program

URLEncoder with sample program

Sample program:   package com.ngdeveloper.com; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; public class ComparePrintandSystem { static String intro="I am naveen kumar working @ www.ngdeveloper.com"; public static void main(String[] args) throws UnsupportedEncodingException { System.out.println(URLEncoder.encode(intro,"UTF-8")); } }   Output: I+am+naveen+kumar+working+%40+www.ngdeveloper.com URLEncoder Rules: All the characters (a to z & A to Z) and numbers (0 to 9) remains same. Space is converted to “+” All the other characters are converted to hexadecimal values by prefixing with %. In the above sample program, %40 is the…

Read More Read More

595 total views, no views today