我装上magiclinux已经有一个星期了,正在努力学习中
今天发现设备管理器不能用,在控制中心里一点击它就失去响应,怎样才能解决?
还有我在magic下安装java SDK时出了点错,我在shell下执行
./j2sdk-1_4_2_11-linux-i586-rpm.bin
出现
Do you agree to the above license terms? [yes or no]
yes
之后就出错
Unpacking...tail: 无法打开 “+511” 读取数据: 没有那个文件或目录Checksumming...1 The download file appears to be corrupted. Please refer to the Troubleshooting section of the Installation Instructions on the download page for more information.Please do not attempt to install this archive file.
我用另一个安装文件j2sdk-1_4_2_11-linux-i586.bin直接执行也出现了同样的提示
[quote:e152c8f1b3="forter-ownwo"]Checksumming...1 The download file appears to be corrupted.[/quote]
It seems the file has been corrupted, download it again and try.
Here are the steps I took, probablely you'll get some hints:
1. rpm -e jre
2. Download jdk-1_5_0_06-linux-i586.bin from sun.com and put it in /opt/
3. chmod a+x jdk-1_5_0_06-linux-i586.bin
4. ./jdk-1_5_0_06-linux-i586.bin
now you have /opt/jdk1.5.0_06/ in ur system, then modify /etc/profile.d/java-profile.sh to be like:
[code:1]
#!/bin/sh
#java settings
JDK_VERSION=jdk1.5.0_06
JAVA_HOME=/opt/$JDK_VERSION
CLASSPATH=$JAVA_HOME/jre/lib/rt.jar:.
JAVA_FONTS=/usr/share/fonts:/usr/share/fonts/ttf/zh_CN
PATH=$PATH:$JAVA_HOME/bin
export JDK_VERSION JAVA_HOME CLASSPATH JAVA_FONTS PATH
[/code:1]
Final step: source /etc/profile