
After the JDK configuration, has been an error??????
- bash: i# : command not found
CodePudding user response:
Path environment variable is set incorrectly, find the correct JDK installation directory, the following configuration for your reference:Vi/etc/profile:
Export JAVA_HOME=/usr/Java/jdk1.7.0 _75 # JDK installation directory
The export PATH=$PATH: $JAVA_HOME/bin: $JAVA_HOME/jre/bin
Export the CLASSPATH=$CLASSPATH: $JAVA_HOME/lib: $JAVA_HOME/jre/lib
Wq, perform the source/etc/profile to take effect
CodePudding user response:
First, you enter the vi/etc/profileThen you will find that you are the first line is i# , I take out and then save the source/etc/profile is ok,