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 |
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.
To compile the Java code, you need:
simpcomp.bat
assumes that this is stored in G:\myaps\jdk1.2, you'll need to change this.
simpcomp.bat
assumes that this is stored in e:\infozip, you'll need to change this.
buildall.bat
assumes that this is stored in f:\jdk1.1.4
buildall.bat
assumes that this is stored in e:\sdk-java
buildall.bat
assumes that this is stored in e:\sdk-java.20
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.
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.