The afternoon took the Raspberry Pi began to Daoteng, the result is the problem.
The most recent version of the Raspberry Pi image has been pre-installed with Oracle's JDK, but the environment variables such as java_home and path have not been configured, so it is tempting to look for the JDK installation path, which is good, if the Windows system is easy to find the installation path, The Raspberry Pi image i downloaded is Raspbian (Debian's transvestite, and other Linux distributions), usually I use CentOS, which commands a little bit differently. The procedure is documented below.
First Whereis and which have checked the following (in fact, I do not think can find the installation path, I found under CentOS is not the installation path)
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5C/34/wKiom1Ub6zbA81dGAACkU-_g_EA516.jpg "title=" Whereis&which.png "alt=" Wkiom1ub6zba81dgaacku-_g_ea516.jpg "/>
It seems not like, so think about it, maybe the link is not necessarily, just looked at
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5C/2E/wKioL1Ub7RmgkzHxAAHBvyh7yVg606.jpg "title=" ls.png "alt=" Wkiol1ub7rmgkzhxaahbvyh7yvg606.jpg "/>
From the return of the results, it is indeed a link file, but the path is very strange, to the next look at the path, it is indeed wrong.
Think seriously, you may have to use dpkg or apt-get to check (CentOS is rpm, so late to think, really ashamed of Wow ~)
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5C/34/wKiom1Ub7ZTSR7EtAADbr3NaFz4830.jpg "title=" Dpkg-query.png "alt=" Wkiom1ub7ztsr7etaadbr3nafz4830.jpg "/>
Because do not know the specific software name, so check the next, followed by the search for the software name ORACLE-JAVA8-JDK, query the specific information of the software
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/5C/34/wKiom1Ub7j2AW7f5AAD48DbPGao735.jpg "title=" Dpkg-s.png "alt=" Wkiom1ub7j2aw7f5aad48dbpgao735.jpg "/>
Look at the return of the results quite like, and finally feel the spring arrived! View/USR/SHARE/DOC/ORACLE-JAVA8-JDK under Readme.debian
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5C/34/wKiom1Ub8FKhAOmiAAHdeUZY_pc476.jpg "title=" README . Debian.png "alt=" Wkiom1ub8fkhaomiaahdeuzy_pc476.jpg "/>
So happy! I finally found it! Go to the directory and see
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5C/34/wKiom1Ub8PTSs4E-AAC0K2k5Vyk376.jpg "title=" Ls2.png "alt=" Wkiom1ub8ptss4e-aac0k2k5vyk376.jpg "/>
The next step is to configure the environment variables ~
This article is from the "Learning" blog, so be sure to keep this source http://learnwithme.blog.51cto.com/7148047/1627474
Record a hard journey to find the preinstalled software path