LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 839|回复: 2

我的JAVA环境变量设置,请高手指导一下[已经解决]

[复制链接]
发表于 2004-12-24 13:40:24 | 显示全部楼层 |阅读模式
我的.bashrc的内容是

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export LC_ALL=zh_CN.gbk
export LANG=zh_CN.gbk
export XMODIFIERS=@im=fcitx

export JAVA_HOME=/usr/java/j2sdk1.4.2_06
export CLASSPATH=$CLASSPATHJAVA_HOME/libJAVA_HOME/jre/lib
export PATH=$PATHJAVA_HOME/binJAVA_HOME/jre/binPATHhome/bin
#export CLASSPATH=.JAVA_HOME/lib/dt.jarJAVA_HOME/lib/tools.jar

不知道哪里有问题??

我的 helloworld的内容是
class test
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}


javac test.java
java test
后,输出是
libgcj-java-placeholder.sh

This script is a placeholder for the /usr/bin/java
master link required by jpackage.org conventions.  libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
段错误


这是怎么回事呢?我的E文太差,看不懂上面的提示,哪位高手来提示一下??谢谢
发表于 2004-12-24 15:26:45 | 显示全部楼层
This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages
>>>> 老版本的libgcj所附带安装的rmiregistry, rmic and jar tools和JVM packages的symlinks冲突。
 楼主| 发表于 2004-12-29 13:00:25 | 显示全部楼层
搞定!
我的.bashrc文件内容是
# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export LC_ALL=zh_CN.gbk
export LANG=zh_CN.gbk
export XMODIFIERS=@im=fcitx
export JAVA_HOME=/usr/java/j2sdk1.4.2_06
export CLASSPATH=.JAVA_HOME/lib/dt.jarJAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/binPATH:
#export PATH=$PATHJAVA_HOME/bin
#export JAVA_HOME=/usr/java/j2sdk1.4.2_06
#export CLASSPATH=$CLASSPATHJAVA_HOME/libJAVA_HOME/jre/lib
#export PATH=$PATHJAVA_HOME/binJAVA_HOME/jre/binPATHhome/bin
#export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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