1. View your own JDK version java-version2. View Rpm-qa | grep javaThe following information is displayed:java-1.4.2-gcj-compat-1.4.2.0-40jpp.115Java-1.6.0-openjdk-1.6.0.0-1.7.b09.el5Unloading:RPM-E--nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.115RPM-E--nodeps Java-1.6.0-openjdk-1.6.0.0-1.7.b09.el5There are some other commands.Rpm-qa | grep GCJRpm-qa | grep JDKIf OpenJDK
Check whether JDK is installed in Linux.The installed CentOS comes with OpenJdk and uses the java-version command. The following information is displayed:Java version "1.6.0 Prime;OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)It is best to uninstall openjdk fir
Compile and install openjdk in CentOS5.5
1. Uninstall the original jdk OF THE SYSTEM
Rpm-qa | grep java
Yum-y remove XXXX -- XXXX is the jdk information found by the first command.
II. The following dependency packages can be installed through yum
Yum-y install alsa-lib-develYum-y install cups-develYum-y install libXi-develYum-y install gcc-c ++Yum-y install libX *
3. Install freetype-2.3.12Wgethttp: // response
Tar-xvf freetype-2.3.12.tar.gz
Cd freet
/ftconfig. h \/Usr/local/include/freetype2/freetype/config/ftconfig. h
Run the following command:
Mkdir-p/usr/local/include/freetype2/freetype/internal
Reinstall
./Configure make install
4. install ant
The version used this time is: apache-ant-1.9.4-bin.zip
Unzip apache-ant-1.9.4-bin.zip
Ln-s decompressed ant directory/bin/ant/usr/bin/ant
5. install JDK and configure environment variables
The next compilation is openjdk-7-fcs-src-b147-27_jun_2011.z
Installing JDK SE1.8 with CentOS
The Yum are usually installed through the OpenJDK
Typically used when developing on a Windows platform is SUNJDK
To avoid possible problems, uninstall your own OPENJDK installation SUNJDK
View the OPENJDK version first
Yum List installed |grep Java
Yum-y Remove java-1.6.0-openjdk.x86_64 Delete
Export Java_home=/opt/java/jdk1.8.0_172export classpath=.: $JAVA _home/jre/lib/rt.jar: $JAVA _home/lib/dt.jar: $JAVA _ Home/lib/tools.jarexport path= $PATH: $JAVA _home/bin Delete OpenJDKThe installed CentOS will bring openjdk, with the command java-version, will have the following information:" 1.6.0 " 1.6. 0-1.6. 0-b09, mixed mode)It is best to uninstall the OPENJDK before installing Sun's JDK.View Firs
Author: fbysssQQ: Wine bar Bar I scatteredBlog:blog.csdn.net/fbysssDisclaimer: This article by fbysss original, reproduced please indicate the source
Preface: Under CentOS, Java is already installed, version 1.7, but there are no environment variables such as Java_home. So:
Export java_home=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9
Export classpath=.: $JAVA _home/jre/lib/rt.jar: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export path= $PATH: $JA
Release date:Updated on:
Affected Systems:OpenJDK 6Description:--------------------------------------------------------------------------------Bugtraq id: 45894Cve id: CVE-2010-4351
OpenJDK is a cooperation Platform for open source implementation of Java Platform, Standard Edition and related projects.
OpenJDK's IcedTea plug-in has a security vulnerability. Remote attackers can exploit this vulnerability to execute arbitrary code in applications.
View the current system JDK: rpm-Qa | grep JDK
Result: [Root @ dc-01 Java] # rpm-Qa | grep JDK
Java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.i686
Detach:
[Root @ dc-01 Java] # Yum-y remove java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.i686
Wait for a while to complete.
Download Sun's JDK. I downloaded
Jdk-6u37-linux-i586-rpm.bin
For a 64-bit system, download:
Jdk-6u37-linux-x64-rpm.bin
1. Uninstall openjdkView the current system's JDK: rpm-Qa | grep JDK (I found here: java-1.6.0-openjdk-1.6.0.0-1.43.1.10.6.el6_2.i686), if not found, you can use rpm-Qa | grep gcj
Remove the built-in JDK: Yum-y remove java-1.6.0-openjdk-1.6.0.0-1.43.1.10.6.el6_2.i686 ,:
2. Install Sun JDKSince I downloaded jdk-7-linux-i586.tar.gz, You can unzip it directly in the installation directory,Go to/USR and run th
(1)/etc/profileExport java_home=/usr/java/jdk1.7.0_67-cloudera/Export path= $PATH: $JAVA _home/binExport jre_home= "$JAVA _home/jre"Export classpath=.: $JAVA _home/lib/tools.jar: $JAVA _home/lib/rt.jarAfter the change is complete, use the source/etc/profile command to update;(2) The following steps are more important. Because OPENJDK is preinstalled on many Linux systems, the default is not what we want to set up, even if these settings are set above.
Fedora 20 comes with openjdk, so if you install the official JDK, remove OPENJDK first, as follows:1:rpm-qa|grep jdk to view the current JDK situation.2:yum-y Remove Java java-1.7.0-openjdk* Uninstall OPENJDK, a process in which some additional software may be uninstalled for reasons of dependency.3: Go to Oracle websi
1. View Fedora's existing Java environment version
OPENJDK version "1.8.0_25" OPENJDK Runtime Environment (build 1.8.0_25-b18) openjdk 64-bit Server VM (build 25.25-b02, mixed Mode
2. Download Sun's latest jdk RPM versionA.: http://www.oracle.com/technetwork/java/javase/downloads/index.htmlThe latest version I downloaded here is jdk-8u25-linux-x64.r
First, download the source code, is through mercurial download the specific download command can see http://openjdk.java.net/projects/jdk7u/hereDownload by HG cloneI downloaded the version is openjdk-7u75-src-b13, this version may not be a stable version but as long as it can be compiled, the test can be used without error, of course, there are some code modifications, and business-relatedAnd then the environmental preparation.FreeType more than versi
Tags: style blog color java div log SP workThe usual working machine is openSUSE 13.1. After replacing it with Oracle JDK, the INTELLJ interface became invisible, did not want to debug and then uninstalled the Oracle JDK and reinstalled the OPENJDK.[Uninstallation of Oracle JDK]1. Query Package NameRpm-qa | grep JavaThe name of the query to the Oracle JDK RPM installation package is Java-xxx-fcs.2. UninstallRpm-e Java-xxx-fcs3. Delete Related environm
View the current system Jdk:rpm-qa | grep jdk
The results obtained:
The code is as follows
Copy Code
[Root@dc-01 java]# Rpm-qa | grep JDKjava-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.i686
Uninstall OPENJDK:
The code is as follows
Copy Code
[Root@wx32 local]# Java-versionJava Version "1.6.0"OpenJDK
First step: See which packages are installed[Email protected] ~]# Rpm-qa | grep javaTzdata-java-2016g-2.el7.noarchPython-javapackages-3.4.1-11.el7.noarchJava-1.7.0-openjdk-headless-1.7.0.111-2.6.7.8.el7.x86_64Java-1.8.0-openjdk-headless-1.8.0.102-4.b14.el7.x86_64Java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64Java-1.7.0-openjdk
In the structure of the previous OPENJDK source research Note (vii) –java code file (. Class), we have a general idea of the structure of the Java bytecode file.
This article describes in detail how to read most of the details of a. class file.
1. Construct the file
Byte code file user.class
String userclass = "C:/user.class";
File File = new file (userclass);
2. Construct the input streamFileInputStream fin = new FileInputStream (file);
DataI
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.