PhantomJS in Mac

Hi…In order to generate an SVG from Vaadin Charts, I need to install PhantomJS… I followed the instructions from
http://phantomjs.org/download.html
, unzipping the file in the downloads folder…from the book of Vaadin, I apprently need to do this:



“set thephantom.exec system property for the JRE to point to the PhantomJS binary”

…but I’m not sure of how to do it…any ideas?

Regards,

Hugo

Hi,

depends on how you run this. Basically you give -Dphantom.exec=“/path/to/phantomjs” to the JRE you’re running this in. E.g. I use it in Tomcat started from Eclipse so I open the launch configuration of the Tomcat and in Arguments → VM arguments I add the phantom.exec.

-tepi