Re: JCE 1.2 Installation

Marianne Mueller (Marianne.Mueller@Eng)
Fri, 15 May 1998 15:28:53 -0700 (PDT)

Date: Fri, 15 May 1998 15:28:53 -0700 (PDT)
From: Marianne Mueller <Marianne.Mueller@Eng>
Subject: Re: JCE 1.2 Installation
To: java-security@web2.javasoft.com, schiefaw@uwec.edu

--Colony_of_Ants_319_000
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: 77eR5lUjUJWeUiMupY0BdA==

> Could you please give me a short description of how to install the JCE
> classes. I haven't had much experience with installing new libraries, and
> they have always been .zip files before.

JCE is distributed in 3 formats

compressed tar for Solaris, such as foo.tar.Z
gzip tar for Solaris, such as foo.tar.gz
zip for Windows, foo.zip

You need to download either the Solaris unix version or the Windows version,
and uncompress it. Then, you need to add the JAR file (which is the
library) to your JDK 1.2 installation.

To uncompress foo.tar.Z

% uncompress *.z
% tar xf foo.tar

To uncompress foo.tar.gz,

% gunzip *.gz
% tar xf foo.tar

To uncompress foo.zip,

% unzip *zip

Instructions on how to move the JAR file into your JDK 1.2 installation
are found in
http://developer.java.sun.com/developer/earlyAccess/jdk12/jce12_install.html

A text version is appended, but the online version is better since
it has some links.

Marianne

--Colony_of_Ants_319_000
Content-Type: TEXT/plain; name="jce12_install.txt"; charset=us-ascii; x-unix-mode=0664
Content-Description: jce12_install.txt
Content-MD5: 8UYRpa4ncJi6r/BUwqBwzg==

JCE 1.2 Installation Instructions

1. Download JCE 1.2. You can save the downloaded file anywhere on your
local disk.

Note that JCE 1.2 requires that you have JDK 1.2 installed.

2. Uncompress and extract the downloaded file. This will create a
directory named jce12-ea2-dom, with two subdirectories named doc and
lib.

3. Add the jce12-ea2-dom.jar file from the extracted lib subdirectory to
your CLASSPATH.

On Solaris,

% setenv CLASSPATH <jce12-ea2-dom-location>/lib/jce12-ea2-dom.jar

On Windows,

% set CLASSPATH=<jce12-ea2-dom-location>\lib\jce12-ea2-dom.jar

where <jce12-ea2-dom-location> is the location of the jce12-ea2-dom
directory that was automatically created when you extracted the
downloaded file.

4. Install the SunJCE provider.

SunJCE is the built-in provider that comes with JCE 1.2. You can
install the SunJCE provider in two different ways:

o Dynamic registration

Add the following lines of code at the beginning of your program:

import java.security.*;

Provider sunJCE = new com.sun.crypto.provider.SunJCE();
Security.addProvider(sunJCE);

o Static registration

Add the following line to the security property file of your JDK
installation, where you configure your crypto providers.
Substitute n for the priority that you would like to assign to the
SunJCE provider:

security.provider.n=com.sun.crypto.provider.SunJCE

------------------------------------------------------------------------
java-security@java.sun.com
Last modified: Tue Mar 17 15:38:58 PST 1998

--Colony_of_Ants_319_000--