To configure ACT to support Aster File Store (AFS), perform this setup procedure:
-
If you have not already installed ACT:
- Obtain the client package as shown in Obtaining Aster Client Packages.
- Install ACT for your operating system as directed in Installing the Aster Database Cluster Terminal (ACT).
-
Install the supported Sun (Oracle) JDK, depending on your operating system:
- Sparc: JDK 1.7, available for download from Oracle at: http://www.oracle.com/technetwork/java/javase/documentation/java-se-7-doc-download-435117.html
Do not install Sun (Oracle) JDK version 1.6 on Sparc operating systems. Attempting to install and use Sun (Oracle) JDK version 1.6 on Sparc operating systems will render the ACT AFS shell inoperable.- On other platforms: JDK 6u21 for your operating system, available for download from Oracle at: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jdk-6u21-b07-oth-JPR
-
Every time you run ACT to access AFS, some environment settings must be used. Make note of what the setting should be for each of these:
- Set JAVA_HOME to the location of the JDK.
- Set the JRE_HOME to $JAVA_HOME/jre.
- Add $JRE_HOME/lib and $JAVA_HOME/lib to the CLASSPATH.
- Add noarch-aster-adfs-client.jar to the CLASSPATH. This file is located in the client package.
- Add $JAVA_HOME/bin and $JRE_HOME/bin to the PATH.
-
Use the method of your choice to set the environment variables for the user who will run ACT:
- When you launch ACT, use a command like:
$ act --afs-port <port> --afs-jar <path_to_jar> --java-home <path_to_jdk>
- Create or modify the file /etc/profile.local.
- Create a new file under the /etc/profile.d directory.
- Run the export commands to set the environment variables in your shell every time before launching ACT for AFS access.
- When you launch ACT, use a command like:
-
For AIX 32-bit and AIX 64-bit platforms, the JDK environment must be set every time before launching ACT for AFS access. Depending on the version of the AIX operating system, use the commands shown here to set the JDK environment:
- On AIX 32-bit:
export LIBPATH=/path-to-JDK-32-bit/jre/lib/ppc/:/path-to-JDK-32-bit/jre/lib/ppc/j9vm/
- On AIX 64-bit:
export LIBPATH=/path-to-JDK-64-bit/jre/lib/ppc64/:/path-to-JDK-64-bit/jre/lib/ppc64/j9vm/
- On AIX 32-bit:
-
If you chose to modify one of the suggested user profiles, edit the appropriate file to set the environment variables as follows:
export JAVA_HOME=<path_to_jdk> export JRE_HOME=$JAVA_HOME/jre export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:<path_to_jar>: $CLASSPATH export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
- To check your settings, use the export command.