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 com.apple.mrj 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!
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("notepad"); 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).]
"JavaRanch, where the deer and the Certified play" - David O'Meara