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: open apple-application preview from java



Instead of directly exec()'ing the binary, exec()'ing "/usr/bin/open -a Preview" will give you a more Mac-like experience by going though LaunchServices and picking up Preivew.app no matter where it is located on disk.

Cheers,
Mike Swingler
Java Frameworks Engineer
Apple Computer

On Dec 15, 2006, at 2:22 AM, Thomas Kübler wrote:

Hello,

We try to start the preview application from java with the runtime.exec command,
so java-application will be start by a shell-script, when we start this it works and
the preview application starts, but we wan't to use this as a cups-backend, when
cups start the java-shell-application we get an error 

No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting

when calling the preview-application, what is wrong?
we tried different callings but have no success.


with regards

Thomas Kübler

----------------------------------------------------

Dynamic Document Solution variex
Alt-Marienfelde 25
12277 Berlin

t. + 49 30 723 23 183
f. + 49 30 723 23 185

www.variex.de



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

This email sent to email@hidden

 _______________________________________________
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: 
 >open apple-application preview from java (From: Thomas Kübler <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.