highcharts怎么在本地导出图片,我在官网上看到有两种方法,一种是php和batik,另一种是java和phantomjs
我想用java和phantomjs,不知道具体怎么部署,那个phantojs.exe怎么使用?tomcat启动时报错误:java.lang.RuntimeExceptio...
我想用java和phantomjs,不知道具体怎么部署,那个phantojs.exe怎么使用?tomcat启动时报错误:
java.lang.RuntimeException: java.io.IOException: Cannot run program "phantomjs": CreateProcess error=2, ?????????
at com.highcharts.export.server.Server.<init>(Server.java:82)
at com.highcharts.export.pool.ServerObjectFactory.create(ServerObjectFactory.java:46)
at com.highcharts.export.pool.ServerObjectFactory.create(ServerObjectFactory.java:23)
at com.highcharts.export.pool.AbstractPool.createObject(AbstractPool.java:26)
at com.highcharts.export.pool.AbstractPool.poolCleaner(AbstractPool.java:66)
at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
。。。。。。 展开
java.lang.RuntimeException: java.io.IOException: Cannot run program "phantomjs": CreateProcess error=2, ?????????
at com.highcharts.export.server.Server.<init>(Server.java:82)
at com.highcharts.export.pool.ServerObjectFactory.create(ServerObjectFactory.java:46)
at com.highcharts.export.pool.ServerObjectFactory.create(ServerObjectFactory.java:23)
at com.highcharts.export.pool.AbstractPool.createObject(AbstractPool.java:26)
at com.highcharts.export.pool.AbstractPool.poolCleaner(AbstractPool.java:66)
at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
。。。。。。 展开
2个回答
展开全部
建议直接保存为 SVG 即可.
如果用 php/batik, java+phantomjs, 需要web服务器的支持, 实际上还是在服务器端调用java转换类, 将 SVG(XML) 转换为 png/jpeg/pdf 格式.
如果用 php/batik, java+phantomjs, 需要web服务器的支持, 实际上还是在服务器端调用java转换类, 将 SVG(XML) 转换为 png/jpeg/pdf 格式.
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询