私の質問は以下の通りです。/etc/profileからENV変数を設定するには?
これはコードです。
[[email protected] eclipse]# java -version java version "1.6.0_17" OpenJDK Runtime Environment (IcedTea6 1.7.4) (rhel-1.21.b17.el6-i386) OpenJDK Client VM (build 14.0-b16, mixed mode) [[email protected] eclipse]# vim /etc/profile [[email protected] eclipse]# source /etc/profile [[email protected] eclipse]# java -version java version "1.6.0_17" OpenJDK Runtime Environment (IcedTea6 1.7.4) (rhel-1.21.b17.el6-i386) OpenJDK Client VM (build 14.0-b16, mixed mode) [[email protected] eclipse]# ./eclipse
これは、以下のように私が/ etc/profileに追加したものです。
JAVA_HOME=/root/jdk1.8.0_91 PATH=$PATH:$JAVA_HOME/bin export JAVA_HOME PATH
これは、エラーメッセージJAVAのバージョンを変更する方法
Version 1.6.0_17 of the JVM is not suitable for this product. Version: 1.8 or greater is required.
のですか?
最初にコードをインデントしてください。 –
[https://stackoverflow.com/help/formatting](https://stackoverflow.com/help/formatting)に行きましょう... –