JDK Installation
The installation format here is bin, executable file form, and RPM and source form (post-compilation installation).
Note that version control must be matched. installation form: RPM, source form.
After compiling the file, upload the executable file.
Putty Terminal garbled solution:
1. Enter in the Putty Terminal instruction or in the Linux shell:echo $LANG $LANGUAGE # View the character set used in the Linux system.
2. In the Putty Character Set option, select the character set corresponding to the server and click the Apply button;
Path:
Note: Our pub path here is not the same as in the video.
Specific Operating Procedures:
1, Cd/srv/ftp/pub
2, LS
3. Execute file: Copy file name--Right click--Execute
In the video:
Note: Prompt information for the command can not be found, directly to the directory to write dead.
The following are local:
Note: The show command cannot be found because the command is not in the place where the PASS environment variable is set. You can write this instruction to the PASS environment variable, but this is a bit of a hassle. You can use the Write dead directory to find the directory.
In the video:
Note: Permission deny is here because of insufficient permissions, need to modify the permissions, after modification to green, indicating executable.
All the way to determine--unpacking--checksumming--inflating (unzip the rpm file)--done
Note: The actual process is to first extract the RPM from the bin file and then install it by RPM.
--java/j verifying that the installation is good
Note: java-version
We want to determine which Java is already installed.
/version, a system may have more than one Java, the system may have downloaded a Java, so we do not necessarily have to install the version of their own, may be the original system installed. The path variable that Java points to is reset, so you have to set it yourself. JDK is not installed in the pub directory (Windows default is ProgramFiles), Linux each software installation path is different, need to think of memory.
Note: We javac the Java installation path to/usr/bin/on the local computer, not the same as in the video.
To view the installation JDK path: Enter the which javac command in the actual use to return
Check Classpath
Note: If the error does not find the class, it proves that the Classpath setting is incorrect.
Installing the JDK