Run PhantomJS with Eclipse GAE

白昼怎懂夜的黑 提交于 2020-01-17 07:37:27

问题


I am facing a problem in running PhantomJS with Eclipse App Engine-JAVA. It is working fine with Command Prompt since I have set the path for PhantomJS in my environment variables. Please help me.

How can I put PhatomJS on my classpath or buildpath in eclipse so that It is available on the web-browser, because if I use the script in my HTML, is shows error that undefined variable phantom.


回答1:


You cannot use PhantomJS with Google App Engine.
PhantomJS is a Headless WebKit (with JavaScript API) it is written in C++.
GAE does only support Java (Java Byte Code), Python and GO.




回答2:


As I wrote in another answer:

Google App Engine supports a number of language runtimes (Java, Python, PHP and Go), but you can use the Managed VMs feature of Google App Engine to run anything in a Docker container (such as PhantomJS), and you can also use Google Compute Engine to get a VM where you can also install anything you would like, in any language.

For reference, here's a tutorial for running Node.js on Managed VMs to help guide you in the right direction.



来源:https://stackoverflow.com/questions/11807709/run-phantomjs-with-eclipse-gae

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!