1. Download and decompress jdk1.7.0 _ 67, and put it in the/usr/local/lib/JVM directory.
Tar zxvf jdk1.7.0_67.tar.gz
Sudo MV jdk1.7.0 _ 67/usr/local/lib/JVM
2. Edit ~ /. Add the following content to the bashrc file.
The content after java_home is your custom JDK storage directory
Export java_home =/usr/local/lib/JVM/jdk1.7.0 _ 67
Export jre_home =$ {java_home}/JRE
Exportclasspath =.: $ {java_home}/lib: $ {jre_home}/lib
Export path =$ {java_home}/bin: $ path
3. Set the default JDK version
Sudo
1) Download jdk-6u45-linux-x64.bin.tar.**2) put it in a directory and unzip it.3) Execute the following commandchmod +x Jdk-6u45-linux-x64.bin./jdk-6u45-linux-x64.binMkdir-p/USR/LIB/JVMMV JDK1.6.0_45/USR/LIB/JVMUpdate-alternatives--install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.6.0_45/bin/java" 1Update-alternatives--install "/usr/bin/javac" "Javac" "/usr/lib/jvm/jdk1.6.0_45/bin/javac" 1Update-
program runs, of course, can not find the corresponding class. The company compiled server is actually configured with multiple JDK versions, and Android compilation is the JDK version set when setting environment variables.Compiling android4.4 uses jdk1.6, and compiling android5.0 uses jdk1.7, which involves switching the JDK version at any time. First to see how to set the JDK environment variables, Baidu Search to get the answer is to modify the ~/.BASHRC or modify the/etc/profile file to co
://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
You can download the latest version of the JDK.
2. Unpack first
sudo tar zxvf./jdk-8u72-linux-x64.tar.gz
Then use MV to move to the directory you want to reach, such as:
MV jdk1.8.0_72 * * * * * (target location)
3. Setting Environment variables
Edit the. bashrc file.
Enter the following command at the terminal:
Vim ~/.BASHRC
At the end of the file, add the following lines of code:
Export JAVA_HOME=XXX (JDK install
Tags: des style http color java using OS StrongRecently need to do JSP project, deployed in Ubuntu, the weekend time to configure the Nginx + PHP + mysql + phpmyadmin + tomcat environment, from the Windows C # turn around, how much some do not adapt, estimated to go the whole stack direction. By the way, the introduction of the configuration method, complete under the console. 1.1 Common
Start Terminal
Ctrl+alt+t
Using the root user
Sudo–sh
View process
coordinate system, which is the xyz coordinate of OSGWorld = Hits.begin ()->getworldintersectpoint ();//Convert to map coords://convert it to the geo-coordinates of the Earth, the conversion method can be copiedGeoPoint Mappoint;mappoint.fromworld (_terrain->getsrs (), world);//Do an elevation query:Doublequery_resolution = 0;//1/10th of a degreeDoubleOUT_HAMSL = 0.0;Doubleout_resolution = 0.0;//Query the elevation at the current point location accor
The shortest distance from a point (x3,y3) to a line passing through a point (x1,y1) and a point (X2,y2)public static double Getmindistance (MapPoint pt1, MapPoint pt2, MapPoint pt3){Double dis = 0;if (pt1. X = = Pt2. X{dis = Math.Abs (pt3. X-pt1. X);return dis;}Double Linek = (pt2. Y-pt1. Y)/(pt2. X-pt1. X);Double Linec = (pt2. X * pt1. Y-pt1. X * pt2. Y)/(pt2.
1. Define a maptoolaction to implement the click function. Obtain the basic information of the vertex to be displayed in maptoolaction and save it to webcontext.
// Obtain the click point and save the information as simplepointinfo_ Context =Event. getwebcontext ();Webmap map =_ Context. getwebmap ();Webpoint screenpoint = (webpoint)Event. getwebgeometry ();Webpoint mappoint = (webpoint)Event. getwebgeometry (). tomapgeometry (MAP );SimplepointinfoPoi
As mentioned in the previous blog, dynamic add point, address: http://blog.csdn.net/taomanman/article/details/7354103
Add text information dynamically when adding vertices as needed.
Public void addmarkergraphics () {ESRI. arcGIS. client. projection. webmercator Mercator = new ESRI. arcGIS. client. projection. webmercator (); graphicslayer = mymap. layers ["mygraphicslayer"] As graphicslayer; // Add vertex information graphic = new graphic () {geometry = Mercator. fromgeographic (New
) */public static void main (string[] args) {//Create a new instance of The application and make the currently
Running thread the application ' s event dispatch thread.
Mapipsearchrim Theapp = new Mapipsearchrim ();
Theapp.entereventdispatcher ();
} private MenuItem Mapfindaddressmenuitem = new MenuItem ("Find Address", 0, 0) {public void run () {
Map.getiplocations ("58.192.32.1");
}
};
Public Mapipsearchrim () {init ();
Pushscreen
If there is more than one Java version installed (sometimes some software installed itself), how to easily switch it. In addition to the common settings environment variables, today learned a new way to switch:Update-alternatives--config JavaUpdate-alternatives--config JavacAlso, how to install your own Java version:sudo update-alternatives--install/usr/bin/java
kinds of links: Hard link (hard link) and soft link (also known as symbolic link, that is, soft link or symbolic link). Links for Linux systems to solve the shared use of files, but also brings the hidden file path, increase the security of permissions and save storage, and other benefits. If an inode number corresponds to multiple file names, these files are referred to as hard links. In other words, a hard link is one file that uses multiple aliases (the following figure hard link is an alias
You can use the LS command to see that Python binaries are available in your system as follows.
$ ls/usr/bin/python*
/usr/bin/python/usr/bin/python2/usr/bin/python2.7/usr/bin/python3/usr/bin/python3.4/ usr/bin/python3.4m/usr/bin/python3m
Perform the following command to view the default Python version information:
$ python--version
python 2.7.8
1. Modify Python version based on User:
To modify the Python version for a particular user, simply create an alias (alias) und
In Ubuntu, if you have more than one Java version installed (sometimes some software installs itself), how can you easily switch? In addition to the common settings environment variables, today learned a new way to switch:Update-alternatives--config JavaUpdate-alternatives--config JavacAlso, how to install your own Java version:sudo update-alternatives--install/u
When you install Debian Linux, the installation process may also provide you with multiple Python versions available, so there will be multiple Python executable binaries in the system. You can use the LS command to see that Python binaries are available in your system as follows.
$ ls/usr/bin/python*
/usr/bin/python /usr/bin/python2 /usr/bin/python2.7 /usr/bin/python3 / usr/bin/python3.4 /usr/bin/python3.4m /usr/bin/python3m
Perform the following command to view the default Python vers
Create a Python development environment in Ubuntu13.10: Step 1 install JDK (to install ECLIPSEIDE) decompress the installation package and set JDK. The update-alternatives -- install option feature adds a new set of system command links. Tar-zxvfjdk-7u45-linux-x64.tar.gzsudomkdir-p/usr/lib/jvmsudomv./j
Build a Python development environment in Ubuntu 13.10:
Step 1 install JDK (to install eclipse ide)
Decompress the installation package and set JDK.
Th
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.