配置java环境时遇到的问题

C、C++和Java语言
回复
lovincodes
帖子: 74
注册时间: 2005-10-28 3:19
送出感谢: 0
接收感谢: 0
联系:

配置java环境时遇到的问题

#1

帖子 lovincodes » 2006-07-21 1:19

1下载 JDK 5.0 Update 5
http://java.sun.com/j2se/1.5.0/download.jsp

2 安装工具:
sudo apt-get install fakeroot java-package java-common

3 转换:
fakeroot make-jpkg jdk-1_5_0_05-linux-i586.bin

用fakeroot生成deb包时发现提示此中错误。目前没有发现是自己的误操作。望指导。错误如下:
mkdir: 无法创建目录‘/etc/.java’: 权限不够
mkdir: 无法创建目录‘/etc/.java/.systemPrefs’: 没有那个文件或目录
touch: cannot touch ‘/etc/.java/.systemPrefs/.system.lock’: 没有那个文件或目录
chmod: 无法访问‘/etc/.java/.systemPrefs/.system.lock’: 没有那个文件或目录
touch: cannot touch ‘/etc/.java/.systemPrefs/.systemRootModFile’: 没有那个文件或目录
chmod: 无法访问‘/etc/.java/.systemPrefs/.systemRootModFile’: 没有那个文件或目录
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 359: /etc/mailcap: 权限不够
mkdir: 无法创建目录‘/usr/share/icons/HighContrast’: 权限不够
mkdir: 无法创建目录‘/usr/share/icons/HighContrastInverse’: 权限不够
mkdir: 无法创建目录‘/usr/share/icons/LowContrast’: 权限不够
cp: 无法创建一般文件‘/usr/share/pixmaps/sun-java.png’: 权限不够
cp: 无法创建一般文件‘/usr/share/icons/HighContrast/48x48/apps/sun-java.png’: 没 有那个文件或目录
cp: 无法创建一般文件‘/usr/share/icons/HighContrastInverse/48x48/apps/sun-java.png’: 没有那个文件或目录
cp: 无法创建一般文件‘/usr/share/icons/LowContrast/48x48/apps/sun-java.png’: 没有那个文件或目录
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 507: /usr/share/mime-info/java-archive.keys: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 508: /usr/share/mime-info/java-archive.keys: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 509: /usr/share/mime-info/java-archive.keys: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 510: /usr/share/mime-info/java-archive.keys: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 511: /usr/share/mime-info/java-archive.keys: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 512: /usr/share/mime-info/java-archive.keys: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 515: /usr/share/mime-info/java-archive.mime: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 516: /usr/share/mime-info/java-archive.mime: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 519: /usr/share/application-registry/java-archive.applications: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 520: /usr/share/application-registry/java-archive.applications: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 521: /usr/share/application-registry/java-archive.applications: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 522: /usr/share/application-registry/java-archive.applications: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 523: /usr/share/application-registry/java-archive.applications: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 524: /usr/share/application-registry/java-archive.applications: 权限不够
mkdir: 无法创建目录‘/usr/share/icons/HighContrast’: 权限不够
mkdir: 无法创建目录‘/usr/share/icons/HighContrastInverse’: 权限不够
mkdir: 无法创建目录‘/usr/share/icons/LowContrast’: 权限不够
cp: 无法创建一般文件‘/usr/share/pixmaps/sun-java.png’: 权限不够
cp: 无法创建一般文件‘/usr/share/icons/HighContrast/48x48/apps/sun-java.png’: 没 有那个文件或目录
cp: 无法创建一般文件‘/usr/share/icons/HighContrastInverse/48x48/apps/sun-java.png’: 没有那个文件或目录
cp: 无法创建一般文件‘/usr/share/icons/LowContrast/48x48/apps/sun-java.png’: 没有那个文件或目录
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 507: /usr/share/mime-info/java-web-start.keys: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 508: /usr/share/mime-info/java-web-start.keys: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 509: /usr/share/mime-info/java-web-start.keys: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 510: /usr/share/mime-info/java-web-start.keys: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 511: /usr/share/mime-info/java-web-start.keys: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 512: /usr/share/mime-info/java-web-start.keys: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 515: /usr/share/mime-info/java-web-start.mime: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 516: /usr/share/mime-info/java-web-start.mime: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 519: /usr/share/application-registry/java-web-start.applications: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 520: /usr/share/application-registry/java-web-start.applications: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 521: /usr/share/application-registry/java-web-start.applications: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 522: /usr/share/application-registry/java-web-start.applications: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 523: /usr/share/application-registry/java-web-start.applications: 权限不够
/home/pstinghua/Backup/jdk-1_5_0_06-linux-i586.bin: line 524: /usr/share/application-registry/java-web-start.applications: 权限不够



这个错误好像好多人都遇到了。这也是我以前就遇到的,但是一直没有解决。这次希望哪位已经解决此问题的jj帮帮忙。谢过了。
有名无名,随遇而安!
头像
madoldman
帖子: 599
注册时间: 2006-02-27 20:19
来自: works system
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 madoldman » 2006-07-21 9:56

你所在的目录是不是没有写权限阿?还有,jdk1.5源里面已经有了阿,没必要自己打包
东西路,南北走
十字路口人咬狗
拿起狗来打砖头
砖头咬了狗一口
图片
回复

回到 “C/C++/Java”