Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix · OSX ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix · OSX ] Distribution Issues

# Windows Installation

This file contains installation and setup notes for Windows.

## Installation

It is recommended that you don't move the `source` folder. If you unzipped the distribution to the root of your `C:` drive as recommended, the batch files might require only minimal changes. Otherwise, you'll need to edit the batch files to reflect the location of the `source` folder.

It is also recommended that you use Windows as your 'homebase'; i.e., store the master copies of the JConfig files on Windows, copying to Mac or Linux only as necessary to compile the native code.

Two batch files are used to compile the Java and C++ code, `simpcomp.bat` and `buildall.bat`; if you don't store the distribution into the folder given above, you'll need to edit the batch files as described below.

Also, you'll need to edit the first few lines of `simpcomp.bat` and `buildall.bat`, depending on the locations where you have the required software installed. See below for details.

## Requirements

To compile the Java code, you need:

- the Sun JDK 1.2 or greater
  You can use another version of the 1.2 JDK
  `simpcomp.bat` assumes that this is stored in G:\myaps\jdk1.2, you'll need to change this.

- Infozip's zip.exe
  You can use another zipping program, if you wish.
  `simpcomp.bat` assumes that this is stored in e:\infozip, you'll need to change this.
  You can get this from InfoZip

To compile the Windows native code DLLs, you need:

- MSVC++

- the Sun JDK 1.1.x
  This is required for the JNI header files.
  `buildall.bat` assumes that this is stored in f:\jdk1.1.4

- the MS Java SDK version 1.5
  This is required for the RNI1 header files.
  `buildall.bat` assumes that this is stored in e:\sdk-java

- the MS Java SDK version 2.0
  This is required for the RNI2 header files.
  `buildall.bat` assumes that this is stored in e:\sdk-java.20

- the MS platform SDK
  Only one file from the platform SDK is used, 'multimon.h', and this is only required by one file, 'files\win\SMonitors.cpp'.
  SMonitors.cpp assumes that the full path to multimon.h is e:\psdk\include\multimon.h. If you have it stored in a different location, you'll need to edit SMonitors.cpp.
  If necessary, you can edit SMonitors.cpp so this file is not needed; see that file for details.
  You can get the platform SDK from www.microsoft.com or msdn.microsoft.com

## Compiling

The batch file `simpcomp.bat` is used to compile the Java code for all platforms. You'll need to edit the first few lines of this file depending on where the JDK and InfoZip are stored. See that file for details.

The batch file `buildall.bat` is used to compile the Windows native code DLLs. This file uses nmake and the make files for each of the six DLLs. You'll need to edit the first few lines of this file depending on where the JDK and the MS Java SDKs are stored. See that file for details.

IMPORTANT NOTE: Previous JConfig versions included the file comp.bat instead of simpcomp.bat. Since the version of comp.bat which was used to compile the copy of JConfig.zip which is included with this distribution uses three versions of javac and is thus very complicated, it is no longer included. It is available on request however. comp.bat uses java 1.0.2 to compile most of the files, and 1.1 and 1.2 to compile a few files that require features available only in those releases of java. If you need to maintain full compatibility, you may need to use comp.bat instead of simpcomp.bat.

IMPORTANT NOTE: If necessary, you might also need to edit the .mak files. Try to edit the .mak files manually (i.e., as text) first before opening them with MSVC. If you open the .mdp files with MSVC, you might need to spend some time telling MSVC where to look for the correct include files and libraries.

## Notes

IMPORTANT NOTE: Don't modify the relative locations of files or folders within the distribution; doing so may require editing the project files, batch files, etc.

NOTE: If you get the message 'Out of Environment Space' when running the batch files, right click on the batch file, and choose 'Properties'. On the 'Memory' tab, in the 'Conventional Memory' area, set the 'Initial Environment' popup menu to its highest setting.

Main Page · JConfig · ImageMeister · System Properties Repository · WordMeister · Free Samples · Java Freeware · Contact Us · FAQ · Links

Copyright (c) 1997-2002 Samizdat Productions. All Rights Reserved.
WarpMovie, TileMovie, JConfig, ImageMeister and MovieShredder are Trademarks of Samizdat Productions.