How To Compile and Run IM1Core4 & Mpegj code:

BEFORE COMPILATION
-Download jdk1.1.7B or later (jdk1.1.x) from the Sun Microsystems site.
Install it in a directory of your choice.
-Download swing-1.1 or later from the Sun Microsystems site. Install it in a directory 
of your choice.
-Install MSVC++ 6.0 and set required PATH and CLASSPATH variables as given below.

COMPILING AND RUNNING THE SOFTWARE:
	There is an executable available in the cvs server. But to compile and run the
application do the following:

ENVIRONMENT VARIABLES:
Double click on the file setEnvironment.bat in the IM1Core4 directory. Before doing so 
just checkin the variables that are set inside it. If they are not according to your system
configurations then change it accordingly. If you want to set it on your own then follow the 
following lines: 
Set the following environment variables, according to where you installed JDK and Swing.
If you are running NT, add these variables as administrator. Avoid spaces in the middle of 
the PATH and CLASSPATH. Do not use a long PATH. ( It might help to install 4dos on your
machine as it lets you have longer PATH environment variable)

set JAVA_HOME=< java_ directory >;
set SWING_HOME=< swing directory >;
set PLAYER

set CLASSPATH=.;%JAVA_HOME%\lib\classes.zip;%SWING_HOME%\swingall.jar;
set CLASSPATH=%CLASSPATH%;< dir that contains MPEGJ stuff ( outside the IM1Core4 dir ) >\java;
set CLASSPATH=%CLASSPATH%C:\PROGRA~1\MICROS~2\VC98\Lib;

set PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;%JAVA_HOME%\BIN;C:\PROGRA~1\MICROS~2\VC98\BIN;.;
set PATH=%PATH%;< dir that contains imiplayer >\IM1Core4\Mpgj\lib;
set PATH=%PATH%;< dir that contains imiplayer >\IM1Core4\Debug;

set INCLUDE=%JAVA_HOME%\INCLUDE;%JAVA_HOME%\INCLUDE\WIN32
set LIB=%JAVA_HOME%\LIB

HOW TO COMPILE THE EXECUTABLES:
-Use MicroSoftVisualC++ 6.0 to open workspace files in IM1 directory. 
First open 2DPlayer-CSELT\IM1-2D.dsw, set it as active project.
Goto BUILD menu and select clean to delete all the output files ( if there are ) and then 
select ReBuildall.
-Compile all the Java APIs. ( Note: JDK1.1.8 should be used for compilation.)
	- the directory mpegj/java has a bat file (make.bat) to compile all the required java files.
	Files that are to be compiled:	
		all files in mpegj/java directory
		all files in mpegj/java/org/mpeg/mpegj
		all files in mpegj/java/org/mpeg/mpegj/decoder
		all files in mpegj/java/org/mpeg/mpegj/net
		all files in mpegj/java/org/mpeg/mpegj/resource
		all files in mpegj/java/org/mpeg/mpegj/scene		

HOW TO RUN:
On Windows NT 4.0 Service Pack 3 or Windows 95.
Copy 2DPlayer-CSELT\im1-2d.ini under windows directory.
Double click on IM1Player\mpeg.reg ( this takescare of entering all information required to be entered
into the registry for mpegj also)
Double click on the IM1Player\Debug\IM1-2D.exe icon. 
A window pops up. Select File-> Open and choose to open one of the compiled samples 
from the \Samples\* directories.