简体   繁体   English

使用Eclipse GAE运行PhantomJS

[英]Run PhantomJS with Eclipse GAE

I am facing a problem in running PhantomJS with Eclipse App Engine-JAVA. 我在使用Eclipse App Engine-JAVA运行PhantomJS时遇到了问题。 It is working fine with Command Prompt since I have set the path for PhantomJS in my environment variables. 由于我在环境变量中设置了PhantomJS的路径,因此它可以正常使用命令提示符。 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. 如何在eclipse中将PhatomJS放在我的classpath或buildpath中,以便在Web浏览器中可用,因为如果我在HTML中使用该脚本,则会显示未定义变量幻像的错误。

You cannot use PhantomJS with Google App Engine. 您不能将PhantomJS与Google App Engine一起使用。
PhantomJS is a Headless WebKit (with JavaScript API) it is written in C++. PhantomJS是一个无头WebKit(使用JavaScript API),它是用C ++编写的。
GAE does only support Java (Java Byte Code), Python and GO. GAE仅支持Java(Java字节代码),Python和GO。

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. Google App Engine支持多种语言运行时(Java,Python,PHP和Go),但您可以使用Google App Engine的托管VM功能在Docker容器(例如PhantomJS)中运行任何内容,也可以使用Google Compute Engine用于获取VM,您可以使用任何语言安装任何您想要的任何内容。

For reference, here's a tutorial for running Node.js on Managed VMs to help guide you in the right direction. 作为参考,这是一个在托管虚拟机上运行Node.js的教程,以帮助指导您正确的方向。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM