Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

How do I run a non-Java executable from Java using CW on Mac 8.6

Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to set up a program so that I can start up a filemaker application from within my Java application.
I am using CodeWarrior on Mac 8.6 to develop the Java application. I added the MRJ libraries and imported classes from in order to access some of the Mac functionality. In this test example below, I unsuccessfully tried to set up the code so that when I pass handleOpenFile() a File object, it executes that file as if I had double clicked on the file's ICON. All this does is print the name of the file I passed it, which is worthless.
Thanks in advance!

Pl. use the [ code ] tags without the sapces.
For more details. pl refer
Thanks for your cooperation.
- satya

[This message has been edited by Madhav Lakkapragada (edited February 15, 2001).]
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I don't know diddly about MACs but to run a program or a command in windows you would do something like this:
Runtime.getRuntime().exec("cmd /K start run.bat");
If you use appropriate MAC commands - should work.
[This message has been edited by Cindy Glass (edited February 16, 2001).]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!