TO BEGIN AT THE BEGINNING
PRE-REQUISITE.
After extracting the voyagers.zip file you will notice that you have two files, viz. 'new.dll' and 'voyage~1.jav'. You will then have to rename the
'voyage~1.jav' file as voyagers.java. This has to be done for the simple reason that when you try to compile the file with the command javac voyagers.java ( that being the actual name of the source file), the java compiler will look for a file named voyagers.java and when he doesn't
find the said file, he gives an error stating 'can't read voyagers.java' .
You shall then have to compile the program, namely, voyagers.java by using the following command:
javac voyagers.java
This will create a number of .class files for you and amongst them there will
be a voyagers.class. You can then excute the program by using the following command:
java voyagers
THE SHOW BEGINS...
You will notice that the program starts by connecting to the localhost
(i.e.127.0.0.1) and displaying it's default html file on the screen. If the
server is not on
, then a MessageBox (a la Microsoft)
will appear on the screen displaying an error message. (Psst. Believe it or
not we have created a DLL and linked it with our project. If you do not
know how to create a DLL, here is an opportunity for you to learn something
from Microsoft's Backyard. We have attached the source code of the DLL
and the required changes in the settings with our program source code.)
HOW THE PROGRAM ACTUALLY WORKS.
html
file,is that, there has to be a backslash(/) at the end of the url,
for eg. "www.microsoft.com/". If this is not so, you will see a MessageBox with an error message in it
appearing on the screen.html
file from that server.html
file, that you have
fetched from a server, on disk. This can be done by using the
menuoption
"Save". It will enable you to save any
html
file in any sub-directory on disk.html
file from the disk with the
help of the menuoption
"Open". exit
from the application by making use of the
menuoption
"Exit".
You have other options at your disposal like:
html
files. You will not be able to download any gif
files,jpeg
files, etc.
All in all, we have tried to make our Browser as lifelike as possible. Hope you like it.