Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finding & launching MS-Excel from java




On Jul 31, 2005, at 5:17 AM, Alain Ravet wrote:

So, all it takes on MacOS X is:

        Runtime.getRuntime ().exec ("open /Users/me/file.xls ");



Better is this:

    String filename = "/Path/to/your/file name with spaces.xls";
    Runtime.getRuntime().exec( new String[] { "open", filename } );

--
Peter Molettiere


_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: finding & launching MS-Excel from java (From: Greg Guerin <email@hidden>)
 >Re: finding & launching MS-Excel from java (From: Alain Ravet <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.