Like the author of the book, I compiled the OPENJDK 7. The process is also encountered a lot of pits, consulted a lot of information, tried to use JDK8,JDK7,JDK6, the final use of jdk7u71 compiled successfully, the following record the process, so that others can learn from. First, the preparatory work:
1. Install Xcode, download directly from the App Store, and command line tools
2. Download Ant,mac will bring Ant, in/usr/local/cellar/ant/1.9.7, if
The Linux Server oraclejdk and openjdk coexist and configure the JavaEE development environment, oraclejdkjavaee
Due to my academic needs, I need to build a JavaEE development environment in linux and work with windows students for development.
JDK
Since fedora uses openjdk by default, some problems may occur when it is removed. Because many open-source software uses it by default, even if oracaljdk is ins
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.
Then configure the Java environment variable:
Set environment variables: Vim/etc/profile or Vim ~ /. Bashrc, add:
Export java_home =/share/software/jdk1.7.0 _ 17Export Pat
Fedora 20 comes with OpenJDK, So if you install the official JDK, you must first Delete OpenJDK as follows:
1: run the rpm-qa | grep jdk command to check the current jdk status.
2: yum-y remove java java-1.7.0-openjdk * uninstall openjdk, which may uninstall some additional software due to dependency.
3: Download th
First, install the OPENJDKJava has 2 jdk, one is Oracle's JDK, and the other is OpenJDK.OpenJDK is used here as the Java development environment.Install with Yum sourceYum Install java-1.8.0-openjdk-devel #java的编译环境yum install JAVA-1.8.0-OPENJDK #jre, Java operating environmentRun the following to verify whether the JDK was successfully installed:Java-version650) this.width=650; "src=" Https://s2.51cto.com/
Because the project is needed, install the Java environment on the machine.1, go to http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html download, select the Accept License AgreementJdk-7u71-linux-x64.tar.gz with Linux x64 selected2, #接下来找个目录来放sun JDK, here we put the/usr/java, and figure out the version, such as Java8 in/usr/java/java8, Java7 in/usr/java/java7Create the/usr/java directory, then unzip the package and move to the/USR/JAVA/JAVA7#mkdir/usr/java tar-
CENTOS6.4 installation configuration OPENJDK-7
Test Machine installation and configurationInstall centos6.4 mini
1000 words are omitted here ......
Disable selinux
Setenforce 0
Vi/etc/sysconfig/selinux --> diabledDisable iptables
Service iptables off
Chkconfig iptables off
NetworkingConfigure sohu yum SourceModify the system architecture and version number.
Sohu images are stable.
Not connectedConfigure local sourceAttach a Local CD to/mnt[Centos6.
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.jar: $JAVA _home/lib/ Tools.jarIf you need to
System V initial script), removing most of the environment variables, preserving only the Lang and term environment variables, and setting the current path to/, that is, running the service script in a very clean environment that can be predicted.So when the script is running, the environment variable cannot be found, so it is modified to the following script Catalina_home_data=/usr/local/tomcat/tomcat7.0start_tomcat=$CATALINA _home_data/bin/startup.sh stop_tomcat=$CATALINA _home_data/bin/shutd
-for-OSX to think about trying to install Xquartz to solve the problem.To establish a soft connection for X11 after installationsudo ln -s /usr/X11/include/X11 /usr/include/X113. Installing FreeTypeA friend who compiles openjdk under Linux may have encountered a requirement to install FreeType, and then install and add the installation directory to the environment variable. But OS X is not the same, FreeType is not practical to install separately. Alt
Release date:Updated on:
Affected Systems:OpenJDKDescription:--------------------------------------------------------------------------------Bugtraq id: 55538Cve id: CVE-2012-4420
OpenJDK is a cooperation Platform for open source implementation of Java Platform, Standard Edition and related projects.
OpenJDK has a remote information leakage vulnerability. Attackers can exploit this vulnerability to leak
Encounter Error Error:./gamma:relocation error:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libjava.so:symbol JVM_ Findclassfromcaller, version sunwprivate_1.1 not defined in file libjvm.so with link time referenceModified files: Hotspot/make/linux/makefileRemove all Test_gamma from the file./gamma:relocation Error:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.36.x86_64/jre/lib/amd64/libjava.so:symbol JVM_ Findc
), the other code is OPENJDK.Note: I'm using Jdk8u40 's Javac code to modify it, so if you want to do it yourself, you need to install JDK8 (the Java compiler is bootstrap, written entirely in Java).Because a lot of people on the Javac code is not familiar (actually I just touch the next day only, also not familiar), so a little more:The main class of the OpenJDK Javac Run is Com.sun.tools.javac.Main, which runs the class directly and takes the file n
Label:Because of my academic needs, I need to build a Java EE development environment in Linux and develop it in collaboration with the students in Windows. Jdk BecauseFedora is used by defaultOPENJDK, removal is more or less problematic, because many open source software is used by default, even if it is installedORACALJDK will also appear in the packageOracle does not exist problems, for the novice I do not dare to touch it;Windows development partners develop together and useOPENJDK Developm
Download installationEnter https://www.mercurial-scm.org/wiki/Mercurial download, Windows on the fool installed, after installation, command line into the installation directory, using the command HG version instructions installed successfully, such asNew sandboxWhat is a sandbox library? In addition to the project repository, there are a number of test libraries that can be used to run some test commands against mercurial without worrying about damage to development. It is possible to use them
Before installing, check if the system comes with OPEN-JDKCommand:Rpm-qa |grep JavaRpm-qa |grep JDKRpm-qa |grep GCJIf no information is entered, no installation is indicated.If the installation can use RPM-QA |grep java | Xargs rpm-e--nodeps Bulk unload All files with Java The key word for this command is JavaFirst retrieve the list containing JavaYum List java*Retrieving the list of 1.8Yum List java-1.8*Install all files for 1.8.0Yum Install java-1.8.0-open
#进入系统的terminal to view the current JDK version:Shell>java-version#查看安装包Shell>rpm-qa|grep Java#将上条命令查出来的结果卸载掉 and see if the uninstallation was successfulShell>rpm-e--nodeps ... java ...Sehll>java-version#下载jdk安装包, Address: http://www.oracle.com/technetwork/java/javase/downloads/ Java-archive-downloads-javase6-419409.html#jdk-6u21-b07-oth-jpr#将下载的文件jdk -6u21-linux-x64-rpm.bin into the/usr/java directoryShell>mkdir/usr/javaShell>cd/usr/java#查看jdk Permissions for -6u21-linux-x64-rpm.binShell>list-l
Tags: def java_home serve alter JRE example runtime RIP apt1.ubuntu is using OPENJDK, so we need to find the appropriate JDK version first. On the command line, enter the command:$apt-cache search openjdk
1
Return results list (varies by PC):Default-jdk-doc-standard Java or Java Compatible development Kit (documentation)... (Omit partial display res
1.ubuntu is using OPENJDK, so we need to find the appropriate JDK version first. On the command line, enter the command:$apt-cache search openjdkReturn results list (varies by PC):Default-jdk-doc-standard Java or Java Compatible development Kit (documentation)... (Omit partial display result)OPENJDK-6-SOURCE-OPENJDK De
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.