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

226 total views, 1 views today

» Read more

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

987 total views, 17 views today

» Read more

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………!!!  

218 total views, 5 views today

» Read more

Java URLDecoder sample program

Program: package com.javadomain.in; 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.javadomain.in"; 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:

197 total views, 1 views today

» Read more

URLEncoder with sample program

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

211 total views, 2 views today

» Read more

TxtWeb Hello World

Step 1:  Download the eclipse,  http://www.eclipse.org/downloads/ Step 2:  Add the google plugin for txtweb in eclipse Step 3:  New -> other -> Web application project, and paste the below code, package com.agn.meaning; //Package name for the app import java.io.IOException; import javax.servlet.http.*; @SuppressWarnings(“serial”) public class MeaningServlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { resp.setContentType(“text/html”); // Remember

204 total views, 1 views today

» Read more

Installing Google Plugin in Eclipse

Installing Google Plugin in Eclipse: Google plugin can be helpful to work with appengine, android ADT’s and cloud deployments. Appengine is one of the best one to deploy Java J2EE web applications. Appengine gives daily free limits, so you can start using google appengine service to deploy J2EE web application either for learning or small start-ups or initiatives.   Step

190 total views, 5 views today

» Read more

Retrieving Hashmap value by comparing hashmap key

Program: Hashmap.java package com.javadomain.in; import java.util.HashMap; import java.util.Map.Entry; public class Hashmap { public static void main(String[] args) { String keyword="super"; HashMap<String, String> myMap = new HashMap<String, String>(); myMap.put("super", "java keyword"); myMap.put("array_merge", "php array function"); for (Entry<String, String> pair : myMap.entrySet()) { if(pair.getKey().equalsIgnoreCase(keyword)){ System.out.println(keyword+" is: " + pair.getValue()); } } } }   Output: super is: java keyword Thanks for reading

187 total views, 3 views today

» Read more

Maven Installations and configurations

Step 1: Go to the link below download the maven file. http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz Step 2: Just extract the file and put it in the D drive or where ever you want. Step 3: Now go to the command prompt, and type mvn and you will get as follows, Because we haven’t set the maven path. Step 4: Now set the path as follows and

238 total views, 3 views today

» Read more

Ant Installations and Configurations

Step 1: Before installing ant ensure that already java has been installed in your system. Step 2: Go to the below link and download the ant. http://ant.apache.org/bindownload.cgi Step 3: Just extract the zip file you downloaded and put in the drive you want. Step 4: Now go to the command prompt and type ant then you will get like as follows, Step 5: Now we

192 total views, 6 views today

» Read more
1 18 19 20 21