What
you need (see the download pages) :
- JAVA SDK
- JES
- JAVACOMM API
- RXTX library
- MBUNDLES package
and a root access of course !!
1. JAVA SDK
You have to choose the directory
where you want to install tha java sdk, we recommend
/usr/java/. There you do :
# ./j2sdk-1_4_0-linux-i386-rpm.bin
# rpm -i j2sdk-1_4_0-linux-i386-rpm
The j2sdk is installed in /usr/java/j2sdk1.4.0/
After that you have to update your .bash_profile (hidden
file in the /root/ directory) by replacing and/or adding
the lines :
export PATH=$PATH:/usr/java/j2sdk1.4.0/bin
export JES_JAVA_HOME=/usr/java/j2sdk1.4.0
Stop and restart the session in order to have the .bash_profile
reloaded.
2. JAVA Packages
JAVACOMM API
Just unzip the javacomm20-x86.tar.Z
and copy the comm.jar in /usr/java/j2sdk1.4.0/jre/lib/ext/
RXTX library
Unzip rxtx-1.4-15.tar.gz
in the directory of your choice (after installation,
we'll never use again this package). Then do :
# cd rxtx-1.4-15/
# ./configure
# make install
If everything goes right, a javax.comm.properties is
created in jre/lib and you find a jcl.jar in jre/lib/ext/
3. JES
We install the Java Embedded
Server in /usr/java/ :
# unzip jes-2_0.zip -d /usr/java/
# unzip jes-2_0_01.zip -d /usr/java/
# cd /usr/java/jes2.0/
# java setup
Then
# cd bundles
# chmod 664 *
For your convenience, you can change the PATH line in
the .bash_profile in order to run "runjes"
from any directory :
export PATH=$PATH:/usr/java/j2sdk1.4.0/bin:/usr/java/jes2.0/bin
by the way, make sure you also have these lines :
export JES_INSTALL_DIR=/usr/java/jes2.0
export CLASSPATH=.:/usr/java/j2sdk1.4.0/jre/lib/framework.jar
and that's all !!!
You have to include other libraries for compilation
purposes in the javac command line and not in the CLASSPATH
env variable...
After a session update, we can run the java server :
# runjes
Java Embedded Server 2.0
Copyright 1998, 1999 and 2000 Sun Microsystems, Inc.
All rights reserved.
Use is subject to license terms.
Type 'h[elp]' for a list of commands.
>
we will need these bundles :
> start log, servlet, http, tcatjspcruntime, httpauth,
httpusers, jesmp
4. Mister Bundles
Unjar the package where you want
:
> jar xf misterbundles1_0.jar
Optionnal but recommended : mbundles.conf
is to be cut and pasted in your HOME (env var) directory
else it will be created with your own parameters
You are ready to use MISTERBUNDLES
!
see the user or developer
manual
|