Run PhantomJS with Eclipse GAE

2019-08-19 17:24发布

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.

2条回答
我命由我不由天
2楼-- · 2019-08-19 17:50

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.

查看更多
兄弟一词,经得起流年.
3楼-- · 2019-08-19 17:52

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.

查看更多
登录 后发表回答