免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3130 | 回复: 2
打印 上一主题 下一主题

怎样修改11.0上的etc/profile? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-04-03 11:31 |只看该作者 |倒序浏览
各位老大:我的11.0上opt下有个java目录,但是我运行javac test.java时却不能运行。好像要修改path变量,但该怎样修改呢?救命啊!

论坛徽章:
0
2 [报告]
发表于 2003-04-03 11:35 |只看该作者

怎样修改11.0上的etc/profile?

vi /etc/profile,add following line:

PATH=$PATH:/usr/binwhich path you want to add)

论坛徽章:
0
3 [报告]
发表于 2003-04-03 11:37 |只看该作者

怎样修改11.0上的etc/profile?

[quote]原帖由 \"423\"]各位老大:我的11.0上opt下有个java目录,但是我运行javac test.java时却不能运行。好像要修改path变量,但该怎样修改呢?救命啊![/quote 发表:
Hi,

Add the path to /etc/PATH file. e.g. if your java/javac are under /opt/java1.4/bin, then you add the \":/opt/java1.4/bin\" to the end of line in /etc/PATH file (without the quotation marks!).

Then logout and login again. You will have java/javac in your path.

Hope this helps.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP