How to Install ANT with Java in Windows

Apache Ant is a Java library and command-line tool whose mission is to drive processes described in build files as targets and extension points dependent upon each other. The main known usage of Ant is the build of Java applications. Ant supplies a number of built-in tasks allowing to compile, assemble, test and run Java … Read more

SaaS built using a PaaS (Google App Engine) and using IaaS (Amazon EC2)

SaaS = PaaS + IaaS Tools for Development, Testing and Implementation: * Amazon Web Services (AWS) * Google App Engine (GAE) * Google Chart Libraries * Eclipse IDE VaR Cloud Presentation SVNLabs References: Google AppEngine: http://code.google.com/appengine/ Amazon EC2: http://aws.amazon.com/ec2/ Google Chart: http://code.google.com/apis/chart/ “A lamp does not speak. It introduces itself through it’s light. Achievers never … Read more

JSP S3Upload

JavaScript is good alternative to bypass AWS bucket policies 😉 <%@ include file=”config.jsp” %> <%@page import=”java.util.Calendar”%> <%@page import=”java.util.Date”%> <%@page contentType=”text/html” pageEncoding=”UTF-8″%> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”><head> <title>S3 Upload – JSP Demo</title> <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″> <script src=”sha1.js”></script> <script src=”webtoolkit.base64.js”></script> <script src=”script.js”></script> <script> function uploadS3() { var awsid = ‘<%=awsAccessKey %>’; … Read more

Application Setup on Google App Engine

Run your web apps on Google’s infrastructure. Easy to build, easy to maintain, easy to scale. https://cloud.google.com/console#c=l 1) Register a free account here https://appengine.google.com/. 2) Create an Application here https://appengine.google.com/start/createapp. 3) Download Google App Engine SDK for Java from here http://code.google.com/appengine/downloads.html#Google_App_Engine_SDK_for_Java. 4) Unzip appengine-java-sdk-1.4.2.zip in your favorite drive like “D:\appengine-java-sdk” 5) Now download apps svnmedia.zip … Read more

Class Loading in J2SE Environment

Java Class Loading mechanism is one of the darkest corners inside java virtual machine. The class loading concept describes the behavior of converting a named class into the bits responsible for implementing that class. Wait a minute! “I never have to deal with it. Why do I need to know this bulky philosophy”, this might … Read more

How to Create OpenSearch Plugins?

OpenSearch is a collection of simple formats for the sharing of search results. OpenSearch description file https://www.svnlabs.com/opensearch.xml We have to create  a simple xml file for websites and search engines to publish search results in a standard and accessible format. See below the code in action……. <?xml version=”1.0″ encoding=”UTF-8″?> <OpenSearchDescription xmlns=”http://a9.com/-/spec/opensearch/1.1/”> <ShortName>svnlabs</ShortName> <LongName>svnlabs – Concentrate … Read more

Accessing a Resource in Java

Accessing a Resource in Java A resource is data(audio, vedio, image, text etc.) that  a program needs to access. Before accessing a resource by a Java program, the resorce is located on the underlying file system. Now, locating a resource on file system inside your project might be tricky for you. There are following ways … Read more

Install JAVA Tomcat on Linux

Installation of Java Login to server as root # cd /opt Download jdk 6 linux rpm bin package from sun (Java SE Development Kit (JDK)) http://java.sun.com/javase/downloads/index.jsp http://java.sun.com/javase/downloads/widget/jdk6.jsp # chmod 777 jdk-6u17-linux-i586-rpm.bin # ./jdk-6u17-linux-i586-rpm.bin Follow the onscreen instructions to complete jdk installation…. press space ….. press yes….. and Enter Now we will find JDK folder at … Read more

wsdl in php

We can use nusoap and pear library to invoke web service … there are some command line tools to consume services and generate/validate wsdl ….. 1. wsdl (call method at CLI) # wsdl WSDL_URL METHOD 2. soapUI create wsdl project and use web services 3. wsdl2php wsdl2php convert service methods as the class like structure … Read more