QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 657|回复: 1

cannot set up the java environ ... 

[复制链接]
发表于 2002-10-27 05:28:05 | 显示全部楼层 |阅读模式
after i install my j2sdk 1.41. i try to edit .bash_profile , so i can run the java commands like javac anywhere....

but it didn't work...please help me out

here's my .bash_profile

------------------------------------------------------
.....

JAVA_HOME=/usr/java/java/
PATH=$PATH:$HOME/BIN:$JAVA_HOME/BIN
BASH_ENV=$HOME/.BASHRC
USERNAME="root"
CLASSPATH=/usr/java/java/lib/tool.java:.

export JAVA_HOME
export CLASSPATH
export USERNAME BASH_ENV PATH
发表于 2002-10-27 11:33:59 | 显示全部楼层
只在PATH里加上/usr/java/j2re1.4.0_02这个路径就可以了,javahome,class的路径不用
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-27 01:40 , Processed in 0.035872 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表