Optionally, you may want to add the location of the SDK's primary tools directory to your system PATH. When setting up the ADT plugin or when using the SDK tools. Restart it using the same command in the shell, If you have any trouble when connect the website, change to "Settings", in "Misc" group select "Force sources to be fetched using push the "Save and Apply" button, then close the "Android SDK and AVD Manager". Use the above command to start Android SDK and AVD Manager, select the Available Packages to install the android sdk you want to install, here I selected all. $ sudo tar xfvz android-sdk_r04-linux_86.tgz Then you will get a tar file : android-sdk_r04-linux_86.tgz, release it with following command: OpenJDK Server VM (build 14.0-b16, mixed mode)Ĭhoose the Linux (i386) collumn's Package: android-sdk_r04-linux_86.tgz2. The shell will display some jdk information like this: Till now the jdk has been successfully installed, you may input following command in the shell to vertify it, Go to /etc find profile add following sentences in itĮxport JAVA_HOME=/opt/android/jdk1.6.0_17Įxport CLASSPATH=$CLASSPATH.$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar Mv the jdk directory to where you want to store your own program, here I move it to the /opt/android/, then it will be followed to configure the enviornment variables in shell configuration file. $ sudo chmod u+x jdk-6u17-linux-i586.bin : edit the bin's property to make it can be executed $ cd /opt/src : tranfer into the directory where store the jdk bin file Open a shell terminate input command as below: Then you will get a bin file named with "jdk-6u17-linux-i586.bin" ![]() ![]() ![]() ![]() install Java SE and configure envirornment variables
0 Comments
Leave a Reply. |