Home > other >  How to configure. Bashrc file to compile and run the program
How to configure. Bashrc file to compile and run the program

Time:10-05

How to configure. Bashrc file to compile and run the program, I don't want to use eclipse, is to use notepad to write a Java program,

According to the method in a book. I bashrc file at the end of this, cannot use, Hadoop can identify all the identifier in the compile time,

Export JAVA_HOME=~/JDK
Export JRE_HOME=${JAVA_HOME}/jre
Export CLASSPATH=${JAVA_HOME}/lib/dt. The jar: JAVA_HOME/lib/tools. The jar:
The export PATH=${JAVA_HOME}/bin: $PATH
Export HADOOP_HOME=~/hadoop
The export PATH=$PATH: $HADOOP_HOME/bin: $HADOOP_HOME/sbin
Export the CLASSPATH="~/hadoop/share/hadoop/common/hadoop - common - 2.9.1. Jar: ~/hadoop/share/hadoop/graphs/hadoop - graphs - the client - core - 2.9.1. Jar: ~/hadoop/share/hadoop/common/lib/Commons cli - 1.2. The jar: $CLASSPATH"

Could you tell me how to add to,

CodePudding user response:

Introduction, I am using Hadoop stand-alone mode, in addition, to run the wordcount. Java files can be placed in any folder, or must compile under a folder again
  • Related