How to Run the Ftp java Program in Internet Programming Lab


Now i'll guide you how to run the File Transfer Protocol using Java networking progam in Internet Programming lab.

Copy your FileServant,FileServer ,FileClient java files to the bin.
Create a new text file and name it is "sample.txt".
Type some words inside that "sample.txt" file.

Now compile the Three Java Files using "javac " command


Ftp+1


now open three command prompts by typing cmd in notepad.

In first command prompt and type as "java FileServer"
it will show you as "Server is waiting"
ftp2


Now pick the Second command prompt and type as "copy con example.txt" and enter.
now type some words like "welcome to ftp"
ftp3

Now pick the Third command prompt and type as "java FileClient"
ftp4

now type as "type Recdfile.txt" and it'll show you what you typed in "sample.txt" file..

The Final Output is :
ftp5_1



ftp_2

ftp5_3



you can download the Source file for this Ftp java program

Download Here
blogger-white-B 0 Comments
white-disqus-D Disqus
white-Facebook-F Fb Comments
Comments :

0 comments:

Post a Comment