Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclip, differences between jre and jdk
This article solves the problem that eclipse is feasible for normal users but occurs after being switched to root.
Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations :...
The solution is to enter your eclipse directory on the terminal and enter:
Mkdir jre
Cd jre
Ln-s your JDK directory/bin
Appendix: ln usage
Ln is another very important command in linux. Its function is to create a non-same link for a file in another location. The most common parameter of this command is-s, the specific usage is the target file of the ln-s source file.
When we need to use the same file in different directories, we do not need to put a file that must be the same under each required directory. We only need to put it in a fixed directory, put the file, and then use the ln command link in other directories to link it, without occupying disk space repeatedly. Example: ln-s/bin/less/usr/local/bin/less
-S indicates the symbol (symbolic.
There are two points to note: first, the ln command will keep the synchronization of each link file, that is, no matter which one you change, other files will change the same; second, there are two types of ln links: Soft link and hard link. The soft link is ln-s *****. It will only generate a file image at your selected location, it does not occupy disk space. The hard link ln *** has no parameter-s. It will generate a file of the same size as the source file at the selected position, both soft links and hard links are synchronized.
If you use ls to view a directory, you will find that some files are followed by a @ symbol, that is, a file generated using ln command, and you can use ls-l command to view it, the link path is displayed.
Instructions
Command name: ln
Permission: All Users
Usage: ln [options] source dist, where the option format is:
[-BdfinsvF] [-S backup-suffix] [-V {numbered, existing, simple}]
[-- Help] [-- version] [--]
Note: there is a so-called link in the Linux/Unix File System. we can regard it as the alias of the file, and the link can be divided into two types: hard link) symbolic link indicates that a file can have multiple names, while a soft link generates a special file, the content of this file points to another file. Hard links exist in the same file system, but soft links can span different file systems.
Ln source dist is used to generate a connection (dist) to the source. As for hard link or soft link, it is determined by the parameter.
No matter whether it is a hard link or soft link, it will not copy the original file, it will only occupy a very small amount of disk space.
-F: when the link is closed, the file with the same name as dist is deleted first.
-D: allows system administrators to hard link their directories.
-I: When deleting an archive with the same name as dist, first ask
-N: dist is considered as a normal file During Soft link.
-S: symbolic link)
-V: display the file name before the link
-B: Back up the files that will be overwritten or deleted during the link.
-S suffix: adds the backup file to the end of SUFFIX.
-V method: Specifies the backup METHOD.
-- Help: displays auxiliary instructions
-- Version: displays the version.
Example:
Generate a symbolic link: zz
Ln-s yy zz
Generate a hard link: zz
Ln yy xx
This article