Compile CEF in the JCEF-windows environment and run the test case in Eclipse

       A while ago, I used webdriver to open the browser, and I can use the driver to open the chrome browser installed on my computer, complete the function of setting the proxy, creating and installing the chrome plug-in by myself. The proxy change is to change the registry, which will definitely be scolded by the user...) chrome is really easy to use, but when it is inserted into the rcp, the evaluation of the boss is: this thing suddenly pops up, if you don't understand us Will the product be abrupt and unintegrated for human use?

       So we turned our attention to CEF ( Chromium Embedded Framework ), there are many introductions on the Internet, so I won't go into details. The problem is, most of the articles I found with x-degree are about compiling and using cef on vs. There are too few cases in java, some examples are not detailed enough, the time is a little long, and I can't find anyone who asks 80% of the questions... Yes , There are also a lot of articles in the linux environment, it looks a bit tired. .

        The official guide for porting cef to use in java is here:

        https://bitbucket.org/chromiumembedded/java-cef/wiki/BranchesAndBuilding

        In fact, step by step in English, the problem is not too big, but I still stubbornly think that there should be a personal translation, and there is a little white step for multi-point screenshots... My operating system is windows 10, 64bit, all the following The installation is done by the 64bitwindows operating system.

         Installation tool:

         1.  CMAKE version 2.8.12.2 and above (CEF itself is developed with c++, the source code needs to generate sln file and then compile dll for use, the work of generating sln needs to be done by it) I downloaded version 2.8 There are a lot of numbers, take a look

         Download address: https://cmake.org/files/

         2. Git (a lot of people have used it, it can download things from a remote location like svn, jcef put it bluntly is to use java to package the function of c++, and git is used here to download java code)

         Download address: https://git-scm.com/download/win

         3. JDK (version 1.7 or 1.8, I tried both, no problem)

          Download address: Anyone who knows java knows how to download

         4. Python (scripts above 2.6, but do not use 3.x scripts, because they are not yet supported) I downloaded 2.7.11

         Download address: https://www.python.org/downloads/

         5. VS2015 (the main need is the c and cpp compilers inside, install them together, it takes up a lot of disk space, but the more you work, the more you find that you can't do without c, and you can't do without Microsoft...) Download visual studio professional 2015 is enough

         Download address: https://www.visualstudio.com/zh-cn/downloads/download-visual-studio-vs.aspx

 

To be continued... Screenshots take a lot of work. .

 

 

       

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326987851&siteId=291194637
Recommended