A simple ImageViewer in Java

myline

Well, it's a simple Java program written for one of my friend who doesn't like 'Dry Gin', neither do I --- but hope to try 'Dry Gin' with him, someday. Well, here goes your ImageViewer in Java. The easiest way run this program:

   java ImageViewer directory-name
With this program you can view .gif or .jpg files --- if you need other extensions, let me know.

For example, if you have a lot of ".gif" or ".jpg" files in

   /home/adil/hehe/         # in Unix sense
   c:\home\adil\hehe\       # in Windows sense
You can run the program like this:
   java ImageViewer /home/adil/hehe/     # unix
   java ImageViewer c:\home\adil\hehe\   # windows
Make sure that you have ImageViewer.class file at the current directory.

Right click the below link and save it on the local disk. To uncompress, use an 'unzipping' program(Lhasa) or something like that. In unix, you can simply do:

   jar xf ImageViewer.jar    # in Unix
      or
   unzip ImageViewer.jar     # in Unix
Don't forget to change directory to the place where ImageViewer.class file resides.

Actually after you unzip the file, you'll get a new directory named

   ImageViewer
Change to the new directory and do:
   java ImageViewer A_directory_name_which_has_jpg_or_gif_files

Imageviewer.jar

myline

this page is maintained by:
jchakma@yahoo.com

1