Solve the Problem of deploying the source code downloaded from github to eclipse, githubeclipse
The weather is fine in June 2, 2015
Github Official Website: https://github.com/
The following uses pdf. js as a case study: https://github.com/mozilla/pdf.js
1) Click Download ZIP on the right of the Case website to Download the source code and decompress it.
Note: You can also download the source code by using HTTPS clone URL and Clone in Desktop.
22.16.find the viewer.html file under the decompressed file and rename the file with the suffix. jsp.
Note: You can also view the source code of the Online demo and copy the source code of the demo to the corresponding jsp file.
3). Integrate js and css files into web projects step by step
Note: For convenience, it is best to create a js file and a css file respectively for storing js and css files.
4) run the eclipse project and check and solve the error repeatedly in conjunction with the console of Google chrome until all the errors disappear.
In addition, the Uploader also provides a better way to get the code. The following is a brief introduction.
1). To get a local copy of the current code, clone it using git:
$ git clone git://github.com/mozilla/pdf.js.git$ cd pdf.js
Note: Git for Windows: http://msysgit.github.io/, directly install
2). Next, install Node. js via the official package or via nvm. If everything worked out, run
$ npm install
To install all dependencies for PDF. js.
Note: The official node. js download website is http://nodejs.org/, which can be used as an alternative when the website is unavailable. If you have any installation problems, refer to the URL W3CSCHOOL. CC. If you do not know about nodejs, refer to Baidu encyclopedia.
3). Finally you need to start a local web server as some browsers do not allow opening PDF files using a file: // URL. Run
$ node make server
4). and then you can open
Http: // localhost: 8888/web/viewer.html
It is also possible to view all test PDF files on the right side by opening
Http: // localhost: 8888/test/pdfs /? Frame
Note: If you cannot find the pdf. js folder, you can search by using the EveryThing software. EveryThing is: http://www.voidtools.com/