Chinaunix首页 | 论坛 | 博客
  • 博客访问: 337975
  • 博文数量: 62
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 710
  • 用 户 组: 普通用户
  • 注册时间: 2013-05-14 14:12
个人简介

太懒

文章分类

全部博文(62)

文章存档

2015年(8)

2014年(20)

2013年(34)

我的朋友

分类: AIX

2013-05-31 14:09:56

下载jdk

 

http://www.ibm.com/developerworks/java/jdk/aix/service.html#java6

 

Java6_64.sdk.6.0.0.415.tar

Java7_64.sdk.7.0.0.90.tar.gz

 

上传到服务器上

bash-3.2# oslevel -r
6100-03
bash-3.2#

bash-3.2# df -g /tmp/
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd3           5.00      3.97   21%      276     1% /tmp             
bash-3.2# mkdir /tmp/jdk
bash-3.2# cd /tmp/jdk/
bash-3.2# cp /softdumpII/hjshi/jdk/39/Java
Java6_64.sdk.6.0.0.415.tar    Java7_64.sdk.7.0.0.90.tar.gz 
bash-3.2# cp /softdumpII/hjshi/jdk/39/* ./
bash-3.2# ls -l
total 341496
-rw-r--r--    1 root     system    162027520 May 31 12:08 Java6_64.sdk.6.0.0.415.tar
-rw-r--r--    1 root     system     12812243 May 31 12:08 Java7_64.sdk.7.0.0.90.tar.gz
bash-3.2#

bash-3.2# df -g /tmp/
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd3           5.00      3.97   21%      276     1% /tmp
bash-3.2# mkdir /tmp/j
javasharedresources/ jna/                
bash-3.2# mkdir /tmp/jdk
bash-3.2# cd /tmp/jdk/
bash-3.2# cp /softdumpII/hjshi/jdk/39/Java
Java6_64.sdk.6.0.0.415.tar    Java7_64.sdk.7.0.0.90.tar.gz 
bash-3.2# cp /softdumpII/hjshi/jdk/39/* ./
bash-3.2# ls -l
total 341496
-rw-r--r--    1 root     system    162027520 May 31 12:08 Java6_64.sdk.6.0.0.415.tar
-rw-r--r--    1 root     system     12812243 May 31 12:08 Java7_64.sdk.7.0.0.90.tar.gz
bash-3.2#

bash-3.2# lslpp -l|grep -i java7
bash-3.2#

 

先装jdk7

bash-3.2# gunzip -c Java7_64.sdk.7.0.0.90.tar.gz | tar -xvf -
x Java7_64.sdk, 15157248 bytes, 29604 media blocks.
bash-3.2# ls -l
total 371104
-rw-r--r--    1 root     system    162027520 May 31 12:08 Java6_64.sdk.6.0.0.415.tar
-rw-r-----    1 206      staff      15157248 May 09 14:04 Java7_64.sdk
-rw-r--r--    1 root     system     12812243 May 31 12:08 Java7_64.sdk.7.0.0.90.tar.gz
bash-3.2#

 

bash-3.2# installp -a -Y -d '.' Java7_64.sdk
+-----------------------------------------------------------------------------+
                    Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

FAILURES
--------
  Filesets listed in this section failed pre-installation verification
  and will not be installed.

  Requisite Failures
  ------------------
  SELECTED FILESETS:  The following is a list of filesets that you asked to
  install.  They cannot be installed until all of their requisite filesets
  are also installed.  See subsequent lists for details of requisites.

    Java7_64.sdk 7.0.0.90                     # Java SDK 64-bit Development ...

  MISSING REQUISITES:  The following filesets are required by one or more
  of the selected filesets listed above.  They are not currently installed
  and could not be found on the installation media.

    Java7_64.jre 7.0.0.0                      # Base Level Fileset

  << End of Failure Section >>

+-----------------------------------------------------------------------------+
                   BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
    1  Selected to be installed, of which:
        1  FAILED pre-installation verification
  ----
    0  Total to be installed

Pre-installation Failure/Warning Summary
----------------------------------------
Name                      Level           Pre-installation Failure/Warning
-------------------------------------------------------------------------------
Java7_64.sdk              7.0.0.90        Requisite failure

bash-3.2#

缺包,没关系,下载一个

下载同时装1.6

bash-3.2# mkdir -p /usr/java6_64_415
bash-3.2#

 

bash-3.2# rm -f .toc
bash-3.2#
bash-3.2# installp -a -Y -R /usr/java6_64_415 -d '.' Java6_64.sdk
installp: executing "/usr/sbin/mkusil -IR /usr/java6_64_415" to create new USIL instance
mkusil: Return Status = SUCCESS
+-----------------------------------------------------------------------------+
                    Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

SUCCESSES
---------
  Filesets listed in this section passed pre-installation verification
  and will be installed.

  Selected Filesets
  -----------------
  Java6_64.sdk (R) 6.0.0.415                  # Java SDK 64-bit

  << End of Success Section >>

+-----------------------------------------------------------------------------+
                   BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
    1  Selected to be installed, of which:
        1  Passed pre-installation verification
  ----
    1  Total to be installed

+-----------------------------------------------------------------------------+
                         Installing Software...
+-----------------------------------------------------------------------------+

installp:  APPLYING software for:
        Java6_64.sdk (R) 6.0.0.415

. . . . . << Copyright notice for Java6_64.sdk >> . . . . . . .
Licensed Materials - Property of IBM

620700107
   Copyright International Business Machines Corp. 2007, 2013.
   Copyright The Apache Software Foundation, 1999.
   Copyright Sun Microsystems, Inc. 1992, 1997.

All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . << End of copyright notice for Java6_64.sdk >>. . . .

Restoring files, please wait.
1103 files restored.
1544 files restored.
2233 files restored.
3257 files restored.
Finished processing all filesets.  (Total time:  2 mins 19 secs).

+-----------------------------------------------------------------------------+
                                Summaries:
+-----------------------------------------------------------------------------+

Installation Summary
--------------------
Name                        Level           Part        Event       Result
-------------------------------------------------------------------------------
Java6_64.sdk (R)            6.0.0.415       USR         APPLY       SUCCESS   
Java6_64.sdk (R)            6.0.0.415       ROOT        APPLY       SUCCESS   
bash-3.2#

验证一下

bash-3.2# /usr/java
java5/        java5_64/     java6/        java6_64/     java6_64_415/
bash-3.2# /usr/java6_64_415/
etc/ lpp/ usr/
bash-3.2# /usr/java6_64_415/usr/
java6_64/ lib/      lpp/      share/   
bash-3.2# /usr/java6_64_415/usr/java6_64/
bin/        copyright   docs/       include/    jre/        lib/        properties/
bash-3.2# /usr/java6_64_415/usr/java6_64/bin/
ControlPanel   idlj           javadoc        jconsole       keytool        rmiregistry    wsimport
HtmlConverter  jar            javah          jcontrol       native2ascii   schemagen      xjc
appletviewer   jarsigner      javap          jdb            policytool     serialver     
apt            java           javaw          jdmpview       rmic           tnameserv     
extcheck       javac          javaws         jrunscript     rmid           wsgen         
bash-3.2# /usr/java6_64_415/usr/java6_64/bin/java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pap6460sr13fp2-20130424_01(SR13 FP2))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460sr13fp2-20130423_146146 (JIT enabled, AOT enabled)
J9VM - 20130423_146146
JIT  - r9_20130108_31100ifx1
GC   - 20121212_AA)
JCL  - 20130419_01
bash-3.2#

下载完的 Java7_64.jre.tar 传到服务器上

bash-3.2# ls -l
total 1292112
-rw-r--r--    1 root     system        44600 May 31 12:27 .toc
-rw-r-----    1 206      staff     162017280 May 06 19:17 Java6_64.sdk
-rw-r--r--    1 root     system    162027520 May 31 12:08 Java6_64.sdk.6.0.0.415.tar
-rw-r--r--    1 root     system    154739712 May 31 12:43 Java7_64.jre
-rw-r--r--    1 root     system    154746880 May 31 12:35 Java7_64.jre.tar
-rw-r-----    1 206      staff      15157248 May 09 14:04 Java7_64.sdk
-rw-r--r--    1 root     system     12812243 May 31 12:08 Java7_64.sdk.7.0.0.90.tar.gz
bash-3.2# rm -f Java6*
bash-3.2# rm -f .toc
bash-3.2# ls -l
total 659104
-rw-r--r--    1 root     system    154739712 May 31 12:43 Java7_64.jre
-rw-r--r--    1 root     system    154746880 May 31 12:35 Java7_64.jre.tar
-rw-r-----    1 206      staff      15157248 May 09 14:04 Java7_64.sdk
-rw-r--r--    1 root     system     12812243 May 31 12:08 Java7_64.sdk.7.0.0.90.tar.gz
bash-3.2#

bash-3.2# installp -a -Y -d '.' Java7_64.jre
+-----------------------------------------------------------------------------+
                    Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

SUCCESSES
---------
  Filesets listed in this section passed pre-installation verification
  and will be installed.

  Selected Filesets
  -----------------
  Java7_64.jre 7.0.0.0                        # Java SDK 64-bit Java Runtime...

  << End of Success Section >>

+-----------------------------------------------------------------------------+
                   BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
    1  Selected to be installed, of which:
        1  Passed pre-installation verification
  ----
    1  Total to be installed

+-----------------------------------------------------------------------------+
                         Installing Software...
+-----------------------------------------------------------------------------+

installp:  APPLYING software for:
        Java7_64.jre 7.0.0.0

. . . . . << Copyright notice for Java7_64.jre >> . . . . . . .
Licensed Materials - Property of IBM

621000102
   Copyright International Business Machines Corp. 1998, 2011.
   Copyright The Apache Software Foundation, 1999-2007.
   Copyright Oracle and/or its affiliates, 1992, 2011.

All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . << End of copyright notice for Java7_64.jre >>. . . .

Restoring files, please wait.
456 files restored.
Finished processing all filesets.  (Total time:  1 mins 5 secs).

Finished processing all filesets.  (Total time:  1 mins 6 secs).

+-----------------------------------------------------------------------------+
                                Summaries:
+-----------------------------------------------------------------------------+

Installation Summary
--------------------
Name                        Level           Part        Event       Result
-------------------------------------------------------------------------------
Java7_64.jre                7.0.0.0         USR         APPLY       SUCCESS   
Java7_64.jre                7.0.0.0         ROOT        APPLY       SUCCESS   
bash-3.2#

 

bash-3.2# installp -a -Y -d '.' Java7_64.sdk
+-----------------------------------------------------------------------------+
                    Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

SUCCESSES
---------
  Filesets listed in this section passed pre-installation verification
  and will be installed.

  Selected Filesets
  -----------------
  Java7_64.sdk 7.0.0.90                       # Java SDK 64-bit Development ...

  << End of Success Section >>

+-----------------------------------------------------------------------------+
                   BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
    1  Selected to be installed, of which:
        1  Passed pre-installation verification
  ----
    1  Total to be installed

+-----------------------------------------------------------------------------+
                         Installing Software...
+-----------------------------------------------------------------------------+

installp:  APPLYING software for:
        Java7_64.sdk 7.0.0.90

. . . . . << Copyright notice for Java7_64.sdk >> . . . . . . .
Licensed Materials - Property of IBM

621000102
   Copyright International Business Machines Corp. 1998, 2013.
   Copyright The Apache Software Foundation, 1999-2007.
   Copyright Oracle and/or its affiliates, 1992, 2011.

All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . << End of copyright notice for Java7_64.sdk >>. . . .

Finished processing all filesets.  (Total time:  6 secs).

+-----------------------------------------------------------------------------+
                                Summaries:
+-----------------------------------------------------------------------------+

Installation Summary
--------------------
Name                        Level           Part        Event       Result
-------------------------------------------------------------------------------
Java7_64.sdk                7.0.0.90        USR         APPLY       SUCCESS   
bash-3.2#

 

验证一下

bash-3.2# /usr/java7_64/bin/java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build pap6470-20110827_01)
IBM J9 VM (build 2.6, JRE 1.7.0 AIX ppc64-64 20110810_88604 (JIT enabled, AOT enabled)
J9VM - R26_Java726_GA_20110810_1208_B88592
JIT  - r11_20110810_20466
GC   - R26_Java726_GA_20110810_1208_B88592
J9CL - 20110810_88604)
JCL - 20110809_01 based on Oracle 7b147
bash-3.2#

再下载一个 Java7_64.jre.7.0.0.90.tar

bash-3.2# tar -xvf Java7_64.jre.7.0.0.90.tar
x Java7_64.jre, 159158272 bytes, 310856 media blocks.
bash-3.2#
bash-3.2#
bash-3.2#
bash-3.2# installp -a -Y -d '.' Java7_64.jre
Java7_64.jre               Java7_64.jre.7.0.0.90.tar 
bash-3.2# installp -a -Y -d '.' Java7_64.jre
+-----------------------------------------------------------------------------+
                    Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

SUCCESSES
---------
  Filesets listed in this section passed pre-installation verification
  and will be installed.

  Selected Filesets
  -----------------
  Java7_64.jre 7.0.0.90                       # Java SDK 64-bit Java Runtime...

  << End of Success Section >>

+-----------------------------------------------------------------------------+
                   BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
    1  Selected to be installed, of which:
        1  Passed pre-installation verification
  ----
    1  Total to be installed

+-----------------------------------------------------------------------------+
                         Installing Software...
+-----------------------------------------------------------------------------+

installp:  APPLYING software for:
        Java7_64.jre 7.0.0.90

. . . . . << Copyright notice for Java7_64.jre >> . . . . . . .
Licensed Materials - Property of IBM

621000102
   Copyright International Business Machines Corp. 1998, 2013.
   Copyright The Apache Software Foundation, 1999-2007.
   Copyright Oracle and/or its affiliates, 1992, 2011.

All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . << End of copyright notice for Java7_64.jre >>. . . .

Restoring files, please wait.
453 files restored.
cp: /etc/java7_64/jre/lib/xalan.properties: A file or directory in the path name does not exist.
migrate_cfg: Unable to migrate /etc/java7_64/jre/lib/xalan.properties.  Saved version remains in $MIGSAVE//etc/java7_64/jre/lib/xalan.properties.
Finished processing all filesets.  (Total time:  1 mins 48 secs).

+-----------------------------------------------------------------------------+
                                Summaries:
+-----------------------------------------------------------------------------+

Installation Summary
--------------------
Name                        Level           Part        Event       Result
-------------------------------------------------------------------------------
Java7_64.jre                7.0.0.90        USR         APPLY       SUCCESS   
Java7_64.jre                7.0.0.90        ROOT        APPLY       SUCCESS   
bash-3.2#

再验证一下

bash-3.2# /usr/java7_64/bin/java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build pap6470sr4fp2-20130426_01(SR4 FP2))
IBM J9 VM (build 2.6, JRE 1.7.0 AIX ppc64-64 Compressed References 20130422_146026 (JIT enabled, AOT enabled)
J9VM - R26_Java726_SR4_FP2_20130422_1320_B146026
JIT  - r11.b03_20130131_32403ifx4
GC   - R26_Java726_SR4_FP2_20130422_1320_B146026_CMPRSS
J9CL - 20130422_146026)
JCL - 20130425_01 based on Oracle 7u21-b09
bash-3.2#

 

AIX7.1

bash-3.2# oslevel -s
7100-00-07-1228
bash-3.2#

bash-3.2# ls -l
total 638136
-rw-r--r--    1 root     system    154739712 May 31 13:50 Java7_64.jre
-rw-r--r--    1 root     system    159160320 May 31 13:50 Java7_64.jre.7.0.0.90.tar
-rw-r--r--    1 root     system     12812243 May 31 13:50 Java7_64.sdk.7.0.0.90.tar.gz
bash-3.2# tar -xvf Java7_64.jre.7.0.0.90.tar
x Java7_64.jre, 159158272 bytes, 310856 media blocks.
bash-3.2# tar -xvf Java7_64.sdk.7.0.0.90.tar.gz
tar: 0511-169 A directory checksum error on media; 0 not equal to 59568.
bash-3.2#
bash-3.2# tar -xvf Java7_64.sdk.7.0.0.90.tar.gz
tar: 0511-169 A directory checksum error on media; 0 not equal to 59568.
bash-3.2#

bash-3.2# installp -a -Y -d '.' Java7_64.jre
+-----------------------------------------------------------------------------+
                    Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

SUCCESSES
---------
  Filesets listed in this section passed pre-installation verification
  and will be installed.

  Selected Filesets
  -----------------
  Java7_64.jre 7.0.0.90                       # Java SDK 64-bit Java Runtime...

  << End of Success Section >>

+-----------------------------------------------------------------------------+
                   BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
    1  Selected to be installed, of which:
        1  Passed pre-installation verification
  ----
    1  Total to be installed

+-----------------------------------------------------------------------------+
                         Installing Software...
+-----------------------------------------------------------------------------+

installp:  APPLYING software for:
        Java7_64.jre 7.0.0.90

. . . . . << Copyright notice for Java7_64.jre >> . . . . . . .
Licensed Materials - Property of IBM

621000102
   Copyright International Business Machines Corp. 1998, 2013.
   Copyright The Apache Software Foundation, 1999-2007.
   Copyright Oracle and/or its affiliates, 1992, 2011.

All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . << End of copyright notice for Java7_64.jre >>. . . .

Restoring files, please wait.
471 files restored.
Finished processing all filesets.  (Total time:  1 mins 4 secs).

Finished processing all filesets.  (Total time:  1 mins 5 secs).

+-----------------------------------------------------------------------------+
                                Summaries:
+-----------------------------------------------------------------------------+

Installation Summary
--------------------
Name                        Level           Part        Event       Result
-------------------------------------------------------------------------------
Java7_64.jre                7.0.0.90        USR         APPLY       SUCCESS   
Java7_64.jre                7.0.0.90        ROOT        APPLY       SUCCESS   
bash-3.2#

 

bash-3.2# installp -a -Y -d '.' Java7_64.sdk
+-----------------------------------------------------------------------------+
                    Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

SUCCESSES
---------
  Filesets listed in this section passed pre-installation verification
  and will be installed.

  Selected Filesets
  -----------------
  Java7_64.sdk 7.0.0.90                       # Java SDK 64-bit Development ...

  << End of Success Section >>

+-----------------------------------------------------------------------------+
                   BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
    1  Selected to be installed, of which:
        1  Passed pre-installation verification
  ----
    1  Total to be installed

+-----------------------------------------------------------------------------+
                         Installing Software...
+-----------------------------------------------------------------------------+

installp:  APPLYING software for:
        Java7_64.sdk 7.0.0.90

. . . . . << Copyright notice for Java7_64.sdk >> . . . . . . .
Licensed Materials - Property of IBM

621000102
   Copyright International Business Machines Corp. 1998, 2013.
   Copyright The Apache Software Foundation, 1999-2007.
   Copyright Oracle and/or its affiliates, 1992, 2011.

All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . << End of copyright notice for Java7_64.sdk >>. . . .

Finished processing all filesets.  (Total time:  6 secs).

+-----------------------------------------------------------------------------+
                                Summaries:
+-----------------------------------------------------------------------------+

Installation Summary
--------------------
Name                        Level           Part        Event       Result
-------------------------------------------------------------------------------
Java7_64.sdk                7.0.0.90        USR         APPLY       SUCCESS   
bash-3.2#

阅读(5989) | 评论(1) | 转发(1) |
给主人留下些什么吧!~~