Build and compile the openJDK environment (full version)

1. Install VMware VMware-workstation-full-10.0.7-2844087.exe
    crack code: HY06L-F334P-9Z6H9-6R2XM-23C6J
  After the installation is complete, Downloading VMware Tools for Linux - version 9.2.0
2. Download the source code openJDK source code
    http ://download.java.net/openjdk/jdk7/promoted/b147/openjdk-7-fcs-src-b147-27_jun_2011.zip
3.Fedora Username: mutong Password: 123456
Installing VMware Tools,please wait.... .
mount:special device /dev/hda does not exist 4.    Copy openjdk-7-fcs-src-b147-27_jun_2011.zip to the desktop from
the path /mnt/hgfs/linux image of the shared folder on the virtual machine    from home/ Folder copy to usr/local/java   OpenJDK compilation  path




  WARNING: LANG has been set to en_US.UTF-8, this can cause build failures. 
         Try setting LANG to 'C'. 
 
ERROR: The version of ant being used is older than
       the required version of '1.7.1'.  The version of ant found was ''. 
  ERROR: You seem to not have installed ALSA 0.9.1 or higher. Please install ALSA (drivers and lib). You can download the source distribution from http://www.alsa-project.org or go to http://www.freshrpms.net/docs/alsa/ for precompiled RPM packages.  ERROR: FreeType version 2.3.0 or higher is required. make[2]: Entering directory `/usr/local/java/openjdk/jdk/make/tools/freetypecheck' /bin/mkdir -p /usr/local/java/openjdk/build/linux-i586/btbins rm -f /usr/local/java/openjdk/build/linux-i586/btbins/freetype_versioncheck make[2]: Leaving directory `/usr/local/java/openjdk/jdk/make/tools/freetypecheck' Failed to build freetypecheck. ERROR: You do not have access to valid Cups header files. Please check your access to /usr/include/cups/cups.h and/or check your value of ALT_CUPS_HEADERS_PATH, CUPS is frequently pre-installed on many systems, or may be downloaded from http://www.cups.org  Exiting because of the above error(s). make: *** [post-sanity] Error

 Start to solve the error:
Uninstall OpenJDK
  1. Execute the command rpm -qa|grep jdk
  java-1.6.0-openjdk-plugin-1.6.0.0-44.1.9.1.fc14.i686
  java-1.6.0-openjdk-1.6.0.0-44.1 .9.1.fc14.i686
  2. Execute the uninstall command
  yum -y remove java java-1.6.0-openjdk-1.6.0.0-44.1.9.1.fc14.i686

Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Setting up Remove Process
Removing java-1.6.0-openjdk.i686 1:1.6.0.0-44.1.9.1.fc14 - e from the transaction
Resolving Dependencies
--> Running transaction check
---> Package java-1.6.0-openjdk.i686 1:1.6.0.0-44.1.9.1.fc14 set to be erased
--> Processing Dependency: java-1.6.0-openjdk = 1:1.6.0.0-44.1.9.1.fc14 for package: 1:java-1.6.0-openjdk-plugin-1.6.0.0-44.1.9.1.fc14.i686
--> Running transaction check
---> Package java-1.6.0-openjdk-plugin.i686 1:1.6.0.0-44.1.9.1.fc14 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch Version
                             Repository                                    Size
================================================================================
Removing:
 java-1.6.0-openjdk  i686 1:1.6.0.0-44.1.9.1.fc14
                             @anaconda-InstallationRepo-201010211814.i386  83 M
Removing for dependencies:
 java-1.6.0-openjdk-plugin
                     i686 1:1.6.0.0-44.1.9.1.fc14
                             @anaconda-InstallationRepo-201010211814.i386 191 k

Transaction Summary
================================================================================
Remove        2 Package(s)

Installed size: 83 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : 1:java-1.6.0-openjdk-plugin-1.6.0.0-44.1.9.1.fc14.i686   1/2 
  Erasing        : 1:java-1.6.0-openjdk-1.6.0.0-44.1.9.1.fc14.i686          2/2 

Removed:
  java-1.6.0-openjdk.i686 1:1.6.0.0-44.1.9.1.fc14                               

Dependency Removed:
  java-1.6.0-openjdk-plugin.i686 1:1.6.0.0-44.1.9.1.fc14                        

Complete!

linux install jdk 1.7 32 bit
1. Download:
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html
wget http://uni-smr.ac. ru/archive/dev/java/bulk/jdk-7u21-linux-i586.rpm
2. Installation:
rpm -ivh jdk-7u21-linux-i586.rpm
Preparing... ########### ################################ [100%]
   1:jdk ########### ################################ [100%]
Unpacking JAR files...
 rt.jar...
 jsse. jar...
 charsets.jar...
 tools.jar...
 localedata.jar...
 jfxrt.jar...
 plugin.jar...
 javaws.jar...
 deploy.jar...
check the installation path echo $JAVA_HOME
/usr/local/java/jdk1.7.0_40
3. Modify the profile:
sudo vi /etc/profile
//Add
JAVA_HOME=/usr/local/java/jdk1.7.0_40 at the end
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOEM/lib/dt.jar
PATH=$JAVA_HOME/bin:$PATH
export ALT_BOOTDIR=/usr/local/java/jdk1.7.0_80
export ALLOW_DOWNLOADS=true 
export USE_PRECOMPILED_HEADER=true 
export SKIP_DEBUG_BUILD=false 
export SKIP_FASTDEBUG_BUILD=true 
export DEBUG_NAME=debug 
unset CLASSPATH 
unset JAVA_HOME 
4. Save :
 #source /etc/profile
5. Verification is successful:
# java -version
 Install ant environment on Linux 1. Download tar.gz version of ant
from http://ant.apache.org
2. Copy it to /usr
3. tar -vxzf apahce-ant-1.9.2-bin.tar.gz to decompress
4. chown -R yjdabc apahce-ant-1.9.2 to
    change
   permissions x apahce-ant-1.9.2
5. vi /etc/profile Modify the system configuration file
    #set Ant enviroment
    ANT_HOME=/usr/local/java/apache-ant-1.7.0
    ANYPATH=$ANTPATH:$ANT_HOME/bin
    unset ANT_HOME
6. Source /etc/proifle will make the configuration take effect immediately
7. ant -version Test whether ant is effective
  Install alsa-lib Contains ALSA library functions Sound card
  ftp://ftp.alsa-project.org/pub/lib/
  alsa-lib-1.1 .6.tar.bz2 tar -xvf alsa-lib-1.1.6.tar.bz2
  Enter the directory: cd alsa-lib-1.1.6.tar.bz2
  Execute the command # ./configure
          # make install
  Install Freetype
  https:// download.savannah.gnu.org/releases/freetype/
  freetype-2.5.3.tar.gz
  execute the command # ./configure
           # make
           #sudo make install
  After the compilation is completed, if an error is still reported in the directory include
  cp -r freetype2/* ./

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325343611&siteId=291194637