问题
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