1 JamVM 1.5.0 Installation
2 ========================
4 This section describes how to configure, build and install JamVM on
5 your machine, along with the necessary class libraries. For details
6 of the generic options to `configure' see the Basic Installation
7 section later in this file.
12 You must already have the compressed tar file containing the source
13 code for JamVM (you're reading this!). For JamVM to run, it must also
14 have a class library containing the system classes and the associated
15 native methods (e.g. java.lang.Object). JamVM 1.5.0 has been written to
16 use GNU Classpath. It is compatible with Classpath 0.92 and versions
17 upto and including the latest snapshot version 0.96. It should also be
18 compatible with the CVS version, and later snapshots, as long as the VM
19 interface has remained the same.
21 Classpath can be obtained from the following URL:
23 ftp://ftp.gnu.org/gnu/classpath
25 The class library consists of the Java classes and the shared libraries
26 containing the native methods. To build the Java classes you must have
27 either ECJ, GCJ or Jikes. To build Classpath >= 0.95 ECJ is required as
30 Building and Installing JamVM
31 -----------------------------
33 I'll deal with building GNU classpath later. To build JamVM, you
34 must first run `configure' to generate the Makefiles specific to your
35 machine. From the directory containing this file do :-
39 This should print out some information and then say it's creating
40 the Makefiles. If it fails, make sure your machine's architecture
41 is supported by JamVM.
43 Then, to build JamVM, type :-
47 To install in the default location (/usr/local), type :-
51 This installs an executable of JamVM with debug information (-g).
52 Alternatively, to install a version with no symbols (which is much
53 smaller, around 150K on PowerPC and 110K on Intel) type :-
57 Note, you must be root to install in the default location.
63 JamVM by default installs in /usr/local/include, /usr/local/bin
64 and /usr/local/libexec. You can change the install prefix (/usr/local)
65 by giving configure the option :-
69 JamVM supports a number of JamVM specific options to `configure'.
70 For full details do ./configure --help. Most of these are concerned
71 with enabling tracing (e.g. --enable-tracelock), or selecting which
72 interpreter variant to build. Unless you want to debug JamVM, or
73 experiment with the intepreter these should not be needed.
75 Two options, however, are useful and may need to be specified. The
76 first is '--with-classpath-install-dir=PATH'. This can be used to
77 specify the base directory in which the GNU classpath class and
78 shared libraries are to be found. By default this is taken to be
79 /usr/local/classpath, GNU classpath's default install location.
80 However, if you install GNU classpath in another place, this MUST
81 be given using this option. It should be set to the same value as
82 you gave to --prefix when configuring Classpath.
84 The second is '--disable-zip'. This disables support for zip/jar files
85 in the bootstrap class loader (the application class loader is Java-based,
86 via Classpath and is unaffected, and will still support jar/zip files).
87 This will reduce the JamVM executable by approx 10K (but see note below, in
88 Classpath installation).
90 Building and Installing GNU classpath
91 -------------------------------------
93 This section gives basic instructions for building and installing
94 GNU Classpath using Jikes. For full information on Classpath options
95 see the INSTALL file inside the GNU Classpath directory.
97 1) Run `configure' - cd into the unpacked GNU Classpath directory
100 ./configure --with-jikes --enable-jni
102 Note, this builds the AWT "peer" classes, the gconf peer classes and
103 gcjwebplugin. If configure fails, refer to the Classpath INSTALL file
104 to make sure you have what's needed. Alternatively, adding
105 `--disable-gtk-peer --disable-gconf-peer --disable-plugin' will turn off
106 their compilation, but you'll be unable to use or test any GUI applications.
108 2) Build GNU Classpath by typing :-
112 3) Then, to install GNU Classpath in the default location
113 (/usr/local/classpath), type :-
117 As with installing JamVM, you may need to be root to install the files.
120 That's it! As long as you have /usr/local/bin in your path, you should
121 now be able to run JamVM by typing `jamvm'.
124 Note: If you configured JamVM to disable zip support in the bootstrap
125 class loader you will need to unzip Classpath's class files, which are
126 by default contained within a .zip file.
128 cd to the classpath installation directory. The .zip file is located at:
130 <classpath prefix>/classpath/share/classpath/glibj.zip
132 for the default installation location this is:
134 /usr/local/classpath/share/classpath/glibj.zip
142 These are generic installation instructions.
144 The `configure' shell script attempts to guess correct values for
145 various system-dependent variables used during compilation. It uses
146 those values to create a `Makefile' in each directory of the package.
147 It may also create one or more `.h' files containing system-dependent
148 definitions. Finally, it creates a shell script `config.status' that
149 you can run in the future to recreate the current configuration, a file
150 `config.cache' that saves the results of its tests to speed up
151 reconfiguring, and a file `config.log' containing compiler output
152 (useful mainly for debugging `configure').
154 If you need to do unusual things to compile the package, please try
155 to figure out how `configure' could check whether to do them, and mail
156 diffs or instructions to the address given in the `README' so they can
157 be considered for the next release. If at some point `config.cache'
158 contains results you don't want to keep, you may remove or edit it.
160 The file `configure.in' is used to create `configure' by a program
161 called `autoconf'. You only need `configure.in' if you want to change
162 it or regenerate `configure' using a newer version of `autoconf'.
164 The simplest way to compile this package is:
166 1. `cd' to the directory containing the package's source code and type
167 `./configure' to configure the package for your system. If you're
168 using `csh' on an old version of System V, you might need to type
169 `sh ./configure' instead to prevent `csh' from trying to execute
172 Running `configure' takes awhile. While running, it prints some
173 messages telling which features it is checking for.
175 2. Type `make' to compile the package.
177 3. Optionally, type `make check' to run any self-tests that come with
180 4. Type `make install' to install the programs and any data files and
183 5. You can remove the program binaries and object files from the
184 source code directory by typing `make clean'. To also remove the
185 files that `configure' created (so you can compile the package for
186 a different kind of computer), type `make distclean'. There is
187 also a `make maintainer-clean' target, but that is intended mainly
188 for the package's developers. If you use it, you may have to get
189 all sorts of other programs in order to regenerate files that came
190 with the distribution.
192 Compilers and Options
193 =====================
195 Some systems require unusual options for compilation or linking that
196 the `configure' script does not know about. You can give `configure'
197 initial values for variables by setting them in the environment. Using
198 a Bourne-compatible shell, you can do that on the command line like
200 CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
202 Or on systems that have the `env' program, you can do it like this:
203 env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
205 Compiling For Multiple Architectures
206 ====================================
208 You can compile the package for more than one kind of computer at the
209 same time, by placing the object files for each architecture in their
210 own directory. To do this, you must use a version of `make' that
211 supports the `VPATH' variable, such as GNU `make'. `cd' to the
212 directory where you want the object files and executables to go and run
213 the `configure' script. `configure' automatically checks for the
214 source code in the directory that `configure' is in and in `..'.
216 If you have to use a `make' that does not supports the `VPATH'
217 variable, you have to compile the package for one architecture at a time
218 in the source code directory. After you have installed the package for
219 one architecture, use `make distclean' before reconfiguring for another
225 By default, `make install' will install the package's files in
226 `/usr/local/bin', `/usr/local/man', etc. You can specify an
227 installation prefix other than `/usr/local' by giving `configure' the
228 option `--prefix=PATH'.
230 You can specify separate installation prefixes for
231 architecture-specific files and architecture-independent files. If you
232 give `configure' the option `--exec-prefix=PATH', the package will use
233 PATH as the prefix for installing programs and libraries.
234 Documentation and other data files will still use the regular prefix.
236 In addition, if you use an unusual directory layout you can give
237 options like `--bindir=PATH' to specify different values for particular
238 kinds of files. Run `configure --help' for a list of the directories
239 you can set and what kinds of files go in them.
241 If the package supports it, you can cause programs to be installed
242 with an extra prefix or suffix on their names by giving `configure' the
243 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
248 Some packages pay attention to `--enable-FEATURE' options to
249 `configure', where FEATURE indicates an optional part of the package.
250 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
251 is something like `gnu-as' or `x' (for the X Window System). The
252 `README' should mention any `--enable-' and `--with-' options that the
255 For packages that use the X Window System, `configure' can usually
256 find the X include and library files automatically, but if it doesn't,
257 you can use the `configure' options `--x-includes=DIR' and
258 `--x-libraries=DIR' to specify their locations.
260 Specifying the System Type
261 ==========================
263 There may be some features `configure' can not figure out
264 automatically, but needs to determine by the type of host the package
265 will run on. Usually `configure' can figure that out, but if it prints
266 a message saying it can not guess the host type, give it the
267 `--host=TYPE' option. TYPE can either be a short name for the system
268 type, such as `sun4', or a canonical name with three fields:
271 See the file `config.sub' for the possible values of each field. If
272 `config.sub' isn't included in this package, then this package doesn't
273 need to know the host type.
275 If you are building compiler tools for cross-compiling, you can also
276 use the `--target=TYPE' option to select the type of system they will
277 produce code for and the `--build=TYPE' option to select the type of
278 system on which you are compiling the package.
283 If you want to set default values for `configure' scripts to share,
284 you can create a site shell script called `config.site' that gives
285 default values for variables like `CC', `cache_file', and `prefix'.
286 `configure' looks for `PREFIX/share/config.site' if it exists, then
287 `PREFIX/etc/config.site' if it exists. Or, you can set the
288 `CONFIG_SITE' environment variable to the location of the site script.
289 A warning: not all `configure' scripts look for a site script.
294 `configure' recognizes the following options to control how it
298 Use and save the results of the tests in FILE instead of
299 `./config.cache'. Set FILE to `/dev/null' to disable caching, for
300 debugging `configure'.
303 Print a summary of the options to `configure', and exit.
308 Do not print messages saying which checks are being made. To
309 suppress all normal output, redirect it to `/dev/null' (any error
310 messages will still be shown).
313 Look for the package's source code in directory DIR. Usually
314 `configure' can determine that directory automatically.
317 Print the version of Autoconf used to generate the `configure'
320 `configure' also accepts some other, not widely useful, options.