• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

to open another program and have it work for you

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic