RT RT关于ubuntu12.04tomcat环境变量问题
远程登陆后 切换到root用户(sudo su root)启动tomcat没有问题(改了/etc/profile,加入了环境变量)
不切换到root用户 用test用户,sudo ./bin/startup.sh提示 Neither the JAVA_HOME or the JRE_HOME environmental variable is defined
试过export 改test用户目录下的.bashrc ,profile或者在test或者home目录下新建.bash_profile改环境变量都不行,网上说应该行的,以前学的时候好像也行 ,怎么回事啊