Titanium Series-Installation of Android SDK,JDK in Titanium Studio and environment variable configuration (ii)

Source: Internet
Author: User
Tags gz file

Ubuntu Installation Configuration JDK

1. First go to Oracle Download JDK compression package under Linux, I downloaded the jdk-8u25-linux-x64.tar.gz file, the next good after the direct decompression

STEP1:
# Copy the extracted jdk1.8.0_25 folder to the/USR/LIB/JVM directory with the highest permissions
sudo cp-r ~/jdk1.8.0_25//usr/lib/jvm/

STEP2:
# Configure Environment variables
sudo gedit ~/.profile
At the end add:
Export java_home=/usr/lib/jvm/jdk1.8.0_25
Then save the shutdown, using the source update under
$ source ~/.profile

Use the ENV command to see the value of Java_home
$ env
If java_home=/usr/lib/jvm/jdk1.8.0_25, the configuration is successful.

STEP3:
# Modify the system's default JDK.
$ sudo update-alternatives--install/usr/bin/java Java/usr/lib/jvm/jdk1.8.0_25/bin/java 300

Just enter the numbers in front of the sun JDK.
$ sudo update-alternatives--install/usr/bin/javac Javac/usr/lib/jvm/jdk1.8.0_25/bin/javac 300

$ sudo update-alternatives--config JAVA
$ sudo update-alternatives--config javac

STEP4:
Then enter java-version and see the following information to change to the Sun's JDK:
JAVA Version "Jdk1.8.0_25"
JAVA (TM) SE Runtime Environment (BUILDJDK1.8.0_25-B20)
JAVA HotSpot (TM) Server VM (build 23.0-b21, Mixed mode)

Another way:

1. Unzip to/usr/lib/jvm/jdk1.8.0_25
Directory

2. Edit the. Profile file

Add to:

Export java_home=/usr/lib/jvm/jdk1.8.0_25
Export path= $JAVA _home/bin: $PATH
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar

3 $ source. Profile

4 $ java-version View Java version If the original version is restarted

Now that it's installed, Titanium Studio and JDK, install Nodejs, then install the Android SDK below, I downloaded the adt-bundle-linux-x86_64-20140702.zip this file, which is not yet known what the use of But the back certainly works. Should download android-sdk_r23.0.2-linux.tgz this.

Problem Analysis: The ANDROID-HOME environment variable is not configured, the Java_home CLASSPATH android_home path Four variables should be placed in the BASHRC file, BASHRC is equivalent to the system environment variable configuration file, All the environment variables are placed here. All of these things are written in the master's article, encounter problems first look here.

Copy the master's Android-sdk-linux file or not, try running the Titanium Setup Android command, No.

November 11, try reloading JDK1.7 because it is possible that titanium does not support the JDK1.8 version, and then modifies the permissions for the files inside the workspace/coding_tools, at least to be set to executable. Solve the problem successfully!!!

When the Java runtime environment appears ... Timeout: The program needs to FQ, has set up the Ssledge agent under Linux, and is the ip:127.0.0.1 from the boot port:16808

Ubuntu under solution adb devices:?????????? Method of no permissions:

Reference: http://www.cnblogs.com/xiaoxuetu/p/3224386.html

command to use: Ps-ef | grep adb view ADB's process

Kill-9 Process Number (number first line)

ADB server

ADB devices

Titanium Series-Installation of Android SDK,JDK in Titanium Studio and environment variable configuration (ii)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.