Currently, the preview version of the SDK only has the Ubuntu version, and the installation needs to be downloaded online. Of course, we expect the official release of the installation version for other platforms in the near future. According to official instructions, the installation of TizenSDK requires the following environments: PrerequisitesSunJavav6orhigherversion (donotuseOpenJDK) qemu-kvm, binutils-multiarch, debhelper, fake
Currently, the preview version of the SDK only has the Ubuntu version, and the installation needs to be downloaded online. Of course, we expect the official release of the installation version for other platforms in the near future. According to official instructions, the installation of Tizen SDK requires the following environment:
Prerequisites
- Sun Java v6 or higher version (do not use OpenJDK)
- Qemu-kvm, binutils-multiarch, debhelper, fakeroot, realpath, libsdl-gfx1.2-4, gettext, procps, effectproc, libdbus-1-3, liblua5.1-0, libexif12, and libcurl3 packages
First, install the sun java environment, and then install related components. Next we take ubuntu-11.04-desktop-i386, Tizen SDK 1.0 Alpha as an example, step by step introduction:
1. Install sun java
Upgrade to ubuntu 11.10. Ubuntu comes with openjdkjava by default. This can be used by default, but if you want to build a professional development environment, you still need to use sun's reliability. In addition, after upgrading to ubuntu 11.10, because the apt library does not have a sun-java6-jdk, You need to compile and install it yourself.
Step 1: Download jdk-7u2-linux-i586.tar.gz
(The latest version can be found at http://www.oracle.com/technetwork/java/javase/downloads/index.html. here we use jdk-7u2.pdf as an example)
wget -c http://download.oracle.com/otn-pub/java/jdk/7u2-b13/jdk-7u2-linux-i586.tar.gz
Step 2: unzip and install
sudo mkdir /usr/lib/jvm sudo tar -zxvf ./jdk-7u2-linux-i586.tar.gz -C /usr/lib/jvm cd /usr/lib/jvm sudo mv jdk1.7.0_02/ java-7-sun
If the version is different, modify it according to the unzipped directory name.
Step 3: Modify Environment Variables
vim ~/.bashrc
Add:
export JAVA_HOME=/usr/lib/jvm/java-7-sun export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH
Save and exit, and enter the following command to make it take effect immediately.
source ~/.bashrc
Step 4: configure the default JDK
Ubuntu may have a default JDK, such as openjdk. To set the JDK we installed as the default JDK version, perform the following work.
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-7-sun/bin/java 300sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-7-sun/bin/javac 300sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/java-7-sun/bin/jar 300sudo update-alternatives --config java
If the system does not install other jdk, the system prompts:
There is only one candidate item in the java link group:/usr/lib/jvm/java-7-sun/bin/java. No configuration is required.
If openJDK and JDK 6 are installed in the system, the system lists various JDK versions, which may be as follows:
- Three candidate items can be used to replace java (/usr/bin/java ).
- Select the path priority status
- ------------------------------------------------------------
- * 0/usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 automatic mode
- 1/usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
- 2/usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
- 3/usr/lib/jvm/java-7-sun/bin/java 300 manual mode
- To maintain the current value [*], press the Enter key or enter the selected number: 3
- Update-alternatives:/usr/lib/jvm/java-7-sun/bin/java is used to provide/usr/bin/java (java) in manual mode.
Follow the prompts and enter the number corresponding to java-7-sun.
Step 5: Test
java -version
The installation is successful as follows:
Java version "1.7.0 _ 02"
Java (TM) SE Runtime Environment (build 1.7.0 _ 02-b13)
Java HotSpot (TM) Client VM (build 22.0-b10, mixed mode)