Topic: 在Linux下执行eclipse的程序报"权限不够"怎么办

  Print this page

1.在Linux下执行eclipse的程序报"权限不够"怎么办 Copy to clipboard
Posted by: yueguangm
Posted on: 2004-11-11 08:28

平台为:RH9 Linux 2.6.5内核, eclipse 2.1.3 使用swt designer for 2.1.3,jdk1.4.2

开发的程序在eclipse应用程序中用run能正常地运行,没有报任何错.
现在想写个脚本,把所需的库都加上,然后启动脚本时使JAVA程序可以运行.
脚本如下所写:
#!/bin/bash
cd /
cd /opt/workspace/Vpn

java -classpath /opt/eclipse/plugins/org.eclipse.jface_2.1.3/jface.jar;/opt/eclipse/plugins/org.eclipse.core.boot_2.1.3/boot.jar;/opt/eclipse/plugins/org.eclipse.core.runtime_2.1.1/runtime.jar;/opt/eclipse/plugins/org.eclipse.swt.gtk_2.1.3/ws/gtk/swt.jar;/opt/eclipse/plugins/org.eclipse.swt.gtk_2.1.3/ws/gtk/swt-pi.jar; -Djava.library.path=/opt/eclipse/plugins/org.eclipse.swt.gtk_2.1.3/os/linux/x86 SGconfigure

其中SGconfigure.class放在/optn/workspace/Vpn下

将脚本改为777权限后运行,报错如下:
./aa: line 5: /opt/eclipse/plugins/org.eclipse.core.boot_2.1.3/boot.jar: 权限不

./aa: line 5: /opt/eclipse/plugins/org.eclipse.core.runtime_2.1.1/runtime.jar:
权限不够
./aa: line 5: /opt/eclipse/plugins/org.eclipse.swt.gtk_2.1.3/ws/gtk/swt.jar: 权
限不够
./aa: line 5: /opt/eclipse/plugins/org.eclipse.swt.gtk_2.1.3/ws/gtk/swt-pi.jar:
权限不够
./aa: line 5: -Djava.library.path=/opt/eclipse/plugins/org.eclipse.swt.gtk_2.1.3/os/linux/x86: 没有那个文件或目录


不明白的是如果权限不够为什么能在eclipse上运行呢?而且我是以root用户登录的.
另外最后报找不到文件或目录也不可能啊,这个目录明明在呀.

恳请高手指点!

2.Re:在Linux下执行eclipse的程序报"权限不够"怎么办 [Re: yueguangm] Copy to clipboard
Posted by: kavinwang
Posted on: 2004-11-11 08:31

可能原因如下,不能保证能解决问题:
你对这些目录和文件的操作权限不够,使用chmod 对那些东西修改权限即可。
用root登录也有权限,特别是文件的权限,可能那些文件是不允许读的(没有读权限)。

3.Re:在Linux下执行eclipse的程序报"权限不够"怎么办 [Re: yueguangm] Copy to clipboard
Posted by: yipsilon
Posted on: 2004-11-13 23:14

chmod -R777 /opt/eclipse/

4.Re:在Linux下执行eclipse的程序报"权限不够"怎么办 [Re: yueguangm] Copy to clipboard
Posted by: hnrpc
Posted on: 2004-11-20 16:13

thank


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923