java出了点问题,如何修改环境变量

软件和网站开发以及相关技术探讨
回复
头像
新手ABC
帖子: 35
注册时间: 2010-04-11 21:29

java出了点问题,如何修改环境变量

#1

帖子 新手ABC » 2011-11-02 20:00

在终端只要输入关于JAVA的内容就会出现

代码: 全选

Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
,输入env查了环境变量,下边有图,我想修改了它,怎么改 :em06
附件
环境变量
环境变量
头像
zkwlx
帖子: 988
注册时间: 2009-10-09 12:54
系统: debian
来自: 北京某胡同

Re: java出了点问题,如何修改环境变量

#2

帖子 zkwlx » 2011-11-02 22:02

你现看看help里这个参数是什么意思,如果不需要这个参数,就直接把profile里那行注释掉就行了
头像
新手ABC
帖子: 35
注册时间: 2010-04-11 21:29

Re: java出了点问题,如何修改环境变量

#3

帖子 新手ABC » 2011-11-05 11:40

zkwlx 写了:你现看看help里这个参数是什么意思,如果不需要这个参数,就直接把profile里那行注释掉就行了
profiles里面没有这个代码

代码: 全选

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi

if [ "$PS1" ]; then
  if [ "$BASH" ]; then
    PS1='\u@\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
	. /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

umask 022
这是profiles文件的代码
回复