Install J2SE 1.3.1 on SCO OpenServer 5.0.6

zhaozj2021-02-17  50

1. The software you need:

OSS643A

ftp://ftp.sco.com/pub/openserver5/oss643a

OsRCompat-Uw713.set

http://www2.caldera.com/download_files/405-000-050dl/osrcompat-uw713.set

URWFONTS.DS.Z

http://www2.caldera.com/download_files/405-000-040dl/urwfonts.ds.z

J2jre131.06.ds.z

http://www2.caldera.com/download_files/405-000-040dl/j2jre131.06.ds.z

J2SDK131.06.DS.Z

http://www2.caldera.com/download_files/405-000-040dl/j2sdk131.06.ds.z

2. Installation.

1> Establish a JDK directory under / TMP. Place all the software downloaded in / tmp / jdk directory

2> Renown the OSS643A file to vol.000.000, install it with a Custom command under single users. Start.

3> Install the OSR, command to pkgadd -d /tmp/jdk/osrcompat-uw713.set

4> Unzip all the .z files in the / tmp / jdk directory. Command is uncompress * .z

5> Install the remaining files in turn. Command is pkgadd -d /tmp/jdk/urwfonts.ds

Pkgadd -d /tmp/jdk/j2jre131.06.ds

Pkgadd -d /tmp/jdk/j2sdk131.06.ds

3. Set.

Modify the .profile file of the root user, add the following (assuming to kshell):

Export java_home = / usr / java2

Export Path = $ PATH: / USR / JAVA2 / BIN

Export ClassPath = $ ClassPath:.

4. Take a look at the J2SE version number

Log in with root:

# Java -Version-Server

Java Version "1.3.1_06" Java (TM) 2 Runtime Environment, Standard Edition (Build SCO-UNIX-J2SE-1.3.1_06: * FCS *: 20021212) Classic VM (Build SCO-UNIX-J2SE-1.3.1_06: * FCS *: 20021212, Green Threads, SUNWJIT)

# java -version -client

Java Version "1.3.1_06" Java (TM) 2 Runtime Environment, Standard Edition (Build SCO-UNIX-J2SE-1.3.1_06: * FCS *: 20021212) Classic VM (Build SCO-UNIX-J2SE-1.3.1_06: * FCS *: 20021212, Green Threads, SUNWJIT)

5. Trial compile procedure.

Create a Hello.java program in the / TMP directory.

# vi hello.java

The content is:

// This is not used here!

Public class hello {??? public static void main (string [] argv) {????? system.out.println ("Hello, welcome to join the world of Java 2 !!!"); ???}? }

# Javac Hello.java

# java -cp. Hello

Hello, welcome to the world of Java 2 !!!

6. After the installation is complete.

If there is an unknown, you can contact Naxin9999@163.com. "Welcome to reprint, please indicate the author.

?

?

?

转载请注明原文地址:https://www.9cbs.com/read-28602.html

New Post(0)