I would like to run my java program, which will create a bunch of images in the graph. I have a website, but I do not want the GraphView program to appear on any page every time, so I'm running a scheduled server side program that will create a graph so that the web page can only image images. I can not seem to know this now I am using spring, so that I can ask a database to generate information for my graph, and then I should create a .dot file. Using Simple Text Writer I put a whole graphfish program on my server, how do I get an image from a .dot file from it? I have done my research and I need to type
$ -Tpng graphic.dot -o graphic.png , but this is a terminal Call and I can not understand it. Should I use some Grappa? How should I do this problem? Can I try the passage of the code as a parameter by trying out the exe, how should I create an image file?
If I understand correctly, then you have a regular Java program running on your server Run a command line program from within.
You can try something with those lines: runtime RT = runtime.at timetime (); Process pr = rt.exec ("c: \\ graphvizbinpath \\ dot.exe -tpng c: \\ graphic.dot -o c: \\ graphic page"); Of course you will need to customize the path, and users running the Java program should have proper file system permissions.
Comments
Post a Comment