Thursday, July 21, 2011

how to compile and run servlet programs


To run a servlet one should follow the steps illustrated below: 
  • Download and Install the tomcat server: Install the tomcat server in a directory in which you want to install and set the classpath.for the variable JAVA_HOME in the environment variable. To get details about the installation process and setting the classpath click the link Tomcat installation.
  • Set the class for the jar file: Set the classpath of the servlet-api.jar file in the variableCLASSPATH inside the environment variable by using the following steps.

    For Windows XP, 
    Go to Start->Control Panel->System->Advanced->Environment Variables->New button and Set the values as
    Variable Name:  CLASSPATH 
    Variable Value:  C:\Program Files\Java\Tomcat 6.0\lib\servlet-api.jar

    For Windows 2000 and NT

    Go to Start->Settings->Control Panel->System->Environment Variables->New button and Set the values as
    Variable Name:  CLASSPATH
    Variable Value:  
    C:\Program Files\Java\Tomcat 6.0\lib\servlet-api.jar
  • Create a java source file and a web.xml file in a directory structure
  • Compile the java source file, put the compiled file (.class file) in the classes folder of your application and deploy the directory of your application in the webapps folder inside the tomcat directory.
  • Start the tomcat server, open a browser window and type the URLhttp://localhost:8080/directory (folder name of your application) name/servler name and press enter.

    If everything is correct your servlet will run.

Thursday, March 3, 2011

My file management program can
--delete file
--make directory
--make new file
etc



Fmanagement










Friday, January 21, 2011

get your name in heart shape

run exe program
enter character "_"(underscore)
enter your name:
and see suraj.txt file made by the program

=>program shows basic use of file input output
it uses fprintf() function extendedly


-the zip file contains heartsn.c and heartsn.exe
-exe is compiled on p4 in tc compiler






click hear to download HeartSN.zip

Sunday, January 16, 2011

cipher encryption program written in c Language

cripto is a cipher encryption package developed under c programming language by me
It converts plain text to cipher text and vice versa
It first inputs 0 or 1 for encryption or decryption
then it asks for a text file to be encrypted
and its done.......now your text will not be readable
to make it readable again decrypt that file again.. . .. . . .(^_^)


Below is a zip file which contains windows executable exe file and .c source code file
click below to download it

                                          Cripto-v1.0 download


if you have any questions or suggestions about this package you can mail me at
                                                                                               suraj.comp.eng@gmail.com