yueguangm
发贴: 9
积分: 0
|
于 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用户登录的. 另外最后报找不到文件或目录也不可能啊,这个目录明明在呀.
恳请高手指点!
|