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: Start Mac OS X Application from JNLP



Dean Shavit wrote:

>we've got a Mac OS X application we'd like to "web enable" by having
>users download a JNLP that will
>
>1) download the Mac OS X application
>2) launch it
>
>Our application already responds to a particular URL and will launch
>that way, so that's one way we know how to trigger it, but I am
>looking for wisdom from the gurus here.

If your Mac OS X application is a Java app, why don't you just deploy it as
a JNLP launchable app?  You can have multiple entry points to a single jar,
so you can have one main class named in the jar's manifest, which JNLP will
ignore (see JNLP spec), and another main class named in the JNLP file,
which does all the JNLP wrapping.  The app can be signed or unsigned,
depending on what you need to do on the user's machine.

Or do you mean you have a native bundled app, not necessarily written in
Java, that you want to make net-launchable?  For example, you have Foo.app,
written in Obj-C, and you want users to be able to click a .jnlp link on a
web page, and have it download and run Foo.app?

If the latter, then your best bet might be an internet-enabled DMG file.
There are security implications in any case, and rolling your own launcher
with jnlp is possible, but I'd hate to make a mistake and nuke the security.

If neither of those seems practical, please explain more about the
application you're trying to download and launch.  For example, is it
written in Java or not?  Does it require an app-bundle (for resources or
settings)?  Can it run from a jar-file?  And so on.

  -- GG


 _______________________________________________
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



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.