Compile OpenJDK source code under CentOS7
Compile the openjdk source code on Centos7.Procedure:
Obtain openjdk source code
Install openjdk6-BoostrapJK
Dependencies during compilation Installation
Configure Environment Variables
Compile
1. Obtain the openjdk source code.
You can download it here.
If it is the installation of OPENJDK, it is regrettable that it is not libnpjp2.so.At this time according to various strange methods on the Internet are not valid, but you can use the IcedTea plugin to solve the problem.The IcedTea version is related to the OPENJDK version of the native installation, and the general Default-java-plugin is automatically selected:1 sudo Install Default-java-pluginThe followin
Label:Linux installation Oracle JDK replacement OPENJDK detailedYang Posted in:2013-3-11 Category:LinuxAs is known to all, due to the copyright issues of Oracle's JDK, most Linux distributions are installed with an open source openjdk with no copyright issues to support some Java program software. However, if we do some Java language development under Linux, it is likely that we will need to install and use
. Do not set Java_home, CLASSPATH environment variables, you can use the last line unset Java_home, unset classpath to comment out
Second, the environment variable settings:
below is the configuration of my environment variables, configured in the ~/.bash_profile file;
Export m2_home=/users/jiangchao08/downloads/apache-maven-3.3.9
Export ant_home=/users/jiangchao08/downloads/ apache-ant-1.9.7
export path= $PATH: $M 2_home/bin: $ANT _home/bin:/usr/bin
Export alt_bootdir=/library/java/ Javavirtua
Editor's note: In this issue of open source, the author and founder of Cafe Au Lait Elliotte Rusty Harold took over the current Java SE 7 Development series article. Because the objectives and processes of the OpenJDK project have been introduced in the first phase, Elliotte will directly introduce the actual build of JDK 7 in this tutorial.
Prior to this, if the OpenJDK project is updated, we will publish
The OpenJDK 7 vulnerability has been fixed in Ubuntu 14.04 and Ubuntu 14.10.
The OpenJDK 7 vulnerability has been resolved in Ubuntu 14.04 and Ubuntu 14.10. We recommend that you upgrade it as soon as possible.
Canonical released the new OpenJDK 7 Security Bulletin, which has been submitted to the repository of Ubuntu 14.04 LTS and Ubuntu 14.10. This update f
-------"C + + programming Ideas" Programming Guidelines 1: First let the program run, and then the pursuit of speed. Even if we make sure that this program is very important and is a bottleneck in our system. Do not optimize, first with the simplest possible design so that the program can run, if the speed does not meet the requirements, and then analyze it. We can always find that "our" bottlenecks are not the problem, saving us time to do something really meaningful.
Compilation of
OpenJDK is sun at the end of 2006 to open up Java project, where the "open source" is the usual sense of open source, that is, the source code can be reused, such as IcedTea, ultraviolet are derived from the openjdk source of the distribution version.Oracle JDK uses a commercial implementation, while OPENJDK uses open source FreeType. Of course, "Same" is built o
Some Ubuntu comes with a JDK. But sometimes it's exactly what we want. The following describes how to replace the JDK1. Uninstalling an existing JDKsudo apt-get purge openjdk-\*2. Download the JDK.3. Create a directory under the/usr/local/folder: sudo mkdir -p /usr/local/java 4. Copy the JDK to the third-step folder.sudo cp -r jdk...tar.gz /usr/local/java/5. Extracting filessudo tar xvzf jdk-8u51-linux-x64.tar.gz6. Update the path below/etc/profil
This is an installation record. I have browsed many articles on solr installation and configuration before and when I encountered problems. Thanks to all the authors for sharing them. It was found that Solr 4.3.0 was installed on Ubuntu 12.04 + OpenJDK 1.7, which is somewhat different from the existing articles on the Internet.
Install Ubuntu 12.04-after basic installation, only install openssh
Install OpenjdkBkjia @ ubsolr :~ $ Sudo apt-get-y install
After centos is installed, it comes with openjdk and uses commands.Java-version, The following information is displayed:
Java version "1.6.0"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 first and install the JDK of sun.
View
1. Uninstall the previous JDK and mark all options that contain openjdk in the new version to completely delete it. Or execute sudo apt-Get autoremove openjdk-6-jre 2, download JDK Software
Follow these steps to install Sun JDK:
Slave/
Or add a repository next week:
Sudo add-Apt-repository PPA: ferramrobert to/JavaSudo apt-Get updateSudo apt-Get install sun-java6-jdk sun-java6-plugin
Then, unzip and instal
Set OpenJDK environment variables in CentOSWhen I installed phpstorm today, I was prompted that I could not find JAVA_HOME, So I remembered that I had not installed JDK! Try openJDK on linux!Centos comes with OpenJDK's Runtime (JRE). In "Add/Delete", we can find JDK (OpenJDKDevelopmentEnvironment) and install it.After the installation, there are no system variables such as java_home, and you need to add the
Solve the problem that Firefox + OpenJDK does not have a Java Plug-in Ubuntu. ubuntuopenjdk
If OpenJDK is installed, it is a pity that it does not have libnpjp2.so.
At this time, all the strange methods on the Internet struggle to be ineffective, but you can use the icedtea plug-in to solve this problem.
The version of icedtea depends on the OpenJDK version insta
First of all, in the high fedora, there is no java-openjdk-1.6 package that needs to be downloaded online, such as CentOS java-openjdk-1.6 package in 7: java-1.6.0-openjdk-1.6.0.36-1.13.8.1.el7_1.x86_64.rpm, measured can be installed in Fedora 20.
The following is reproduced, the main note installation prompts "Java-1.7.0-ope
Label:Reference article: Blog Park-three-dimensional antsLinux Commune1, first need to download the corresponding Platform Jdk:oracle official website2. Install the JDK using the Yum or RPM command:Yum install ./jdk-8u40-linux-x64.rpm3. After configuring the environment variable Vi/etc/profile, enter the following at the penultimate line:Export JAVA_HOME=/USR/JAVA/JDK1. 8 . 0_40export PATH= $JAVA _home/bin: $PATHexport CLASSPATH=.: $JAVA _home/lib/dt.
1. Install ubuntu Desktop on physical machine or VM
You can download Ubuntu 16.04.2 LTS (recommend) from Https://www.ubuntu.com/download/desktop 1.1. Use source of USTC, it's faster in
sudo cp/etc/apt/sources.list/etc/apt/sources.list.bak
sudo sed-i ' s/archive.ubuntu.com/mirrors.ustc.edu.cn/g ' /etc/apt/sources.list
1.2. Update system
sudo apt-get update
sudo apt-get-y dist-upgrade
sudo apt-get autoclean
reboot
2. Install Tools
2.1. Install Vim
sudo apt-get install vim
2.2 Install
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.