• Post Reply Bookmark Topic Watch Topic
  • New Topic

to open another program and have it work for you  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a useful application program, maybe some of u have already heard of it, "Xara webstyle". i have been creating buttons for web pages with it. My issue follows so then: i would like to have an user interface on the browser, so that I will create the buttons as chosen on the browser window.
how can one reach the API of Xara? or what is the proper way to achieve such an issue?
say I would like to create a MS Word document, utilizing this schema....
what is the way?
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rustem
So, you want to invoke Xara program from Java, right? and communicate with that program somehow.
Now, to invoke Xara from Java, if you know how to invoke Xara from the command prompt and to give some input to it then its not much difficult. You can probably use Runtime.exec(new String[]{"/usr/bin/Xara","arg1", "arg2"});
Please look for Runtime.exec() example on google or some tutorials
Now, I have not worked with Xara so I don't know how Xara does output things? If it has to create a file at some location you can just look for that file at exected location or something...Refer to Process class in Java API to know how you can use getOutputStream() to get the output from the invoked process etc..
Regards
Maulin
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!