To view the version of a JDK that is already installed on this computer:[[email protected] ~]# Java-versionjava version "1.6.0" OpenJDK Runtime Environment (build 1.6.0-b09) OpenJDK Client VM (b Uild 1.6.0-b09, Mixed mode)If it's not the JDK you need, how do I uninstall it? And how do you install the JDK you need?Uninstall jdk****************************** installed on this machineFirst find the JDK that th
Call the C program through JNI to implement "Hello world!" Output, mastering this method makes it easy to implement Java functions in C/C + +.
To determine the successful installation of Java, on this machine because of engineering needs, has installed several JDK versions, the implementation of Java-version
root@wang:~/jni# java-versionOPENJDK Version "1.8.0_91"OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-0ubuntu4~14.04-b14)
Recently, RedHat released the RedHatEnterpriseLinux5.3 for enterprise users, the third update of the current stable version. New Features and scalability are added for new updates. OpenJDK and IntelNehalem processors are supported. Main features include: ◆ extended x86-64 virtualization available range: Now can support 32 virtual CPU and 80 GB virtual memory, corresponding, physical CPU support also increased to 126, physical memory support
Recently,
1. Download openjdk2 from apache. Suppose directory ~ /Openjdk3: configure the system environment, sudoaptitudebuild-depopenjdk-6sudoaptitudeinstallopenjdk-6-jdklibmotif-devexportLANG = CALT_BOOTDIR =/usr/lib/jvm/java-6-openjdkAL
1. Download openjdk from the apache official website.
2: Decompress the package. Suppose directory ~ /Openjdk
3: configure the system environment,
Sudo aptitude build-dep
luceneworkflow document ).
Fortunately, javasbox has a. NET version developed using IKVM. NET (you only need to access the javasbox download page ).
To use consumer box in. NET, you need to reference:
IKVM. OpenJDK. Core. dll
IKVM. OpenJDK. SwingAWT. dll
Pdfbox-1.8.4.dll
And copy the following files to the bin Folder:
Commons-logging.dll
Fontbox-1.8.4.dll
IKVM.
Opennms compilation in Linux1.1 source code compilation 1.1.1 get source code
You can obtain the source code of the corresponding version from the official website or Github. download the latest stable version 14.0.3 as needed. We recommend that you download this version. The details are as follows.
Website
URL
OpenNMS Official Website
Http://sourceforge.net/projects/opennms/files/OpenNMS-Source/old/opennms-source-14.0.3-1.tar.gz
GitHub
Https: // github.com/Op
1. Check if JDK is installed in the current system (usually the default installation in CentOS OpenJDK)
# java–version
If OPENJDK is present, it needs to be uninstalled first:
# Rpm-qa|grep JDK or Rpm-qa|grep Javajava-1.6.0-openjdk-1.***java-1.7.0-openjdk-1.***
# Rpm-qa|grep GCJjava-1.***l
1 , check that the Linux-brought JDK is installed (uninstall the CentOS-installed low version if installed)The installed CentOS will bring openjdk, with the command java-version, will have the following information:Java-version2 , uninstall OpenJDKView # Rpm-qa | grep Java Displays the following information:Rpm-qa | grep javaUninstall command:Rpm-e--nodeps java-1.6.0-openjdk-1.6.0.0-1.66.1.13.0-E--nodeps ja
In general, we need to uninstall the OPENJDK that comes with linux, and then install the sun jdk. First, check whether the JDK that comes with Linux is installed lt; 1 gt; # java-version n
In general, we need to uninstall the OPENJDK that comes with linux, and then install the sun jdk.First, check whether the built-in JDK of Linux is installed.The following information is generally obtained:Java version
Eclipse and pydev build a perfect Python Development Environment (UBUNTU)
Two days ago, I successfully built a python development environment in windows. This time, UBUNTU had the previous experience and it was much easier.
It is also found that the operations in Ubuntu are more convenient than those in windows.
Installation environment
Intel Core 7250 (dual-core), UBUNTU 10.04.1
1. Install openjdk6
Sudo apt-Get install openjdk-6-jdk
command information for the corresponding alternatives.DescriptionAlternatives--install whichInstall indicates installationLink is a symbolic linkName is the identifierPath is the way to execute the filePriority indicates precedenceIn the current state, I need to modify the Java version, the specific operation is shown as follows:A. Run alternatives--config Java in root, as shown below:[Email protected] ~]#Alternatives--config JavaThere is 2 programs which provide ' Java '.Selection Command----
When configuring Hadoop, there is no JDK found when you format HadoopI used Red Hat is 32-bit, no ready-made 32-bit, hit Java, found that the machine has Java, and found a bit of its locationFound jdk-1.6.0.which Java[email protected] hadoop-1.1.2]# which Java/usr/bin/java[Email protected] hadoop-1.1.2]# Ls/usr/bin/java/usr/bin/java[Email protected] hadoop-1.1.2]# ls-l/usr/bin/javalrwxrwxrwx. 1 root root June 03:00/usr/bin/java-/etc/alternatives/java[Email protected] hadoop-1.1.2]# ls-l/etc/alte
Install JDK1.8 and linuxjdk1.8 in Linux
1. Before installation, delete the OpenJDK that comes with Linux:
(1) run java-version, and you will find the OpenJDK that comes with Linux. Run rpm-qa | grep OpenJDK to find the name of OpenJDK that comes with Linux;
(2) Run rpm-nodeps-e Ope
32-bit operating system.Software Requirements:Operating system, in AOSP open source, the main branch is developed and tested using Ubuntu long-term versions, so it is also recommended that you compile with Ubuntu, below we list different versions of Ubuntu to compile those Android versions:
Android version
Compile the required Ubuntu minimum version
Android 6.0 to AOSP Master
Ubuntu 14.04
Android 2.3.x to Android 5.x
Ubuntu 12.04
0.Use Oracle Jdk,not OpenJDK1.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 file:/home/westward/soft/openjdk-7u-40/openjdk/hotspot/make/linux/makefile (Yuandaima)Remove all Test_gamma f
password landing this machine.Input commandSSH localhostEnter Yes for first loginSet up a password login to generate the private key and public keySsh-keygen-t rsa-p ""watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvemhvdxpob3vqawfucxvhbg==/font/5a6l5l2t/fontsize/400/fill/ I0jbqkfcma==/dissolve/70/gravity/southeast ">Here we append the public key to Authorized_keys, which the user holds all the public key content that agrees to log on to the Sshclient user as the current user.Cat ~/.ssh/id_rsa.pu
1:echo $JAVA _homeIf you use $java_home, you can locate the installation path of the JDK as long as the environment variable $java_home is configured, otherwise the installation path of the JDK is not located at all.[Email protected] ~]# java-versionJava Version "1.7.0_65"OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)OpenJDK 64-bit Server VM (build 24.65-b04, Mixed mode)[Email protected] ~]
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.