NowmyosisUbuntu10.4.AndtherearelotsofproblemwithmeandUbuntu. Howcanisetchineseinput? IcanseePinYinInput, butitdoesnotwork... Itisnotthemainprobleabouttoday. Writ
Now my OS is Ubuntu10.4.And there are lots of problem with me and Ubuntu.
How can I set chinese input?
I can see PinYin Input, but it does not work .....
It is not the main proble about today. Writing in english will give me some chance.
1: Down Load JDK 5, The lastest is JDK 6, you can get from system/Alibaba memanger/PackageManger. But there is no JDK5 Resource.
So you need to download it from the sun. I can confirm that there is it in www.sun.com.
What I got is: jdk-1_5_0_22-linux-i586.bin
Do you have got what you need?
2: Put jdk-1_5_0_22-linux-i586.bin file to my/home/administrator/java directory.
3: in Command Line Interface, you need get in the file directory/home/administrator/java
Sudo chmod u + x jdk-1_5_0_22-linux-i586.bin
/Jdk-1_5_0_22-linux-i586.bin
Then you see some readme about sun .......
More and more.
Subtitles will appear. Press enter until yes/no is required for the screen display. Enter y and press Enter. The jdk will be decompressed to the folder to get the jdk 1.6.0 _ 12 directory.
Now that jdk has been installed, configure it below
Run
Code:
Sudo vi/etc/profile
Modify the profile as follows:
Reference:
# Set JAVA (note is not a SHELL command here)
JAVA_HOME =/home/administrator/download/jdk1.5.0 _ 22
JRE_HOME =/home/administrator/download/jdk1.5.0 _ 22/jre
PATH = $ JAVA_HOME/bin: $ JAVA_HOME/jre/bin: $ PATH
CLASSPATH =.: $ CLASSPATH: $ JAVA_HOME/lib: $ JAVA_HOME/jre/lib
Export JAVA_HOME JRE_HOME PATH CLASSPATH
Export PATH
Run
Code:
Sudo source/etc/profile
At this time, the environment variables are successfully set (there are many ways to set the environment variables, not to list them one by one)
Because ubuntu may have a default jdk, such as openjdk, we need to perform the following work to make the jdk installed by default.
Run
Code:
Update-alternatives -- install/usr/bin/java/usr/lib/jvm/java/jdk1.6.0 _ 12/bin/java 300
Update-alternatives -- install/usr/bin/javac/usr/lib/jvm/java/jdk1.6.0 _ 12/bin/javac 300
In this step, add the installed jdk to the java menu.
Then execute
Code:
Update-alternatives -- config java
In this step, select the default jdk
In this way, enter
Code:
Java-version
The system uses sun java.