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: javaws on command line



Thanks Scott for a number of enlightening answers!

On 13-Mar-06, at 8:48 PM, Scott Kovatch wrote:

-- When you install a release of Java 5, Java Cache Viewer.app also registers that it can open JNLP files, and since it is newer than Web Start, it becomes the default application owner for JNLP files. (This is a feature of LaunchServices.) It does the same things as Java Web Start.app, except that it is aware of the VM ordering shown by Java Preferences.app, and uses that to determine which VM will be used if the JNLP file specifies '+' for the version. Currently, 1.4+ gives you 1.4.2, unless you put 1.5.0 at the head of the list. In Java 5 Release 4, 1.4+ will give you 1.5.0, unless you change it back to 1.4.2 yourself. It also knows where to find the right JAR files for JNLP processing, so it can construct the classpath needed to launch the application specified in the JNLP file with either 1.4.2 or 1.5.0.

Let's see if I understand all this...

Without Java 1.5 installed, Java Web Start.app handles the JNLP, so you get either a 1.3.1 or 1.4.2 VM depending what the JNLP says. If it says 1.5* I assume you get a "no can do".

With Java 1.5 installed, Java Cache Viewer.app handles JNLPs, and what you get depends on Java Preferences.app.
- JNLP 1.4* ignores Java Preferences so gives you 1.4.2.
- JNLP 1.4+ and 1.4.2 preferred in Java Preferences gives you 1.4.2.
- JNLP 1.4+ and 1.5 preferred in Java Preferences gives you 1.5.
- JNLP 1.5* ignores Java Preferences so gives you 1.5.
- JNLP 1.5+ and 1.4.2 preferred in Java Preferences gives you 1.5.
- JNLP 1.5+ and 1.5 preferred in Java Preferences gives you 1.5.

Is this correct? If so, I find this very unintuitive.

-- Out of the Tiger box, javaws is a symlink to /Applications/Utilities/Java/Java Web Start.app/Contents/MacOS/Java WebStart. When you installed a release of Java 5.0, the symlink is overwritten to point to /Applications/Utilities/Java/J2SE 5.0/Java Cache Viewer.app/Contents/MacOS/Java Cache Viewer. 

This isn't true on my Mac at work nor my PowerBook at home. This might be the source of my initial confusion.

Steves-TiPB:~ steve$ ls -l `which javaws`
lrwxr-xr-x   1 root  wheel  77 Sep 23 09:25 /usr/bin/javaws -> /Applications/Utilities/Java/Java Web Start.app/Contents/MacOS/Java Web Start

Steve


 _______________________________________________
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: 
 >javaws on command line (From: Steve Roy <email@hidden>)
 >Re: javaws on command line (From: Steve Roy <email@hidden>)
 >Re: javaws on command line (From: "Michael J. Vinca" <email@hidden>)
 >Re: javaws on command line (From: Steve Roy <email@hidden>)
 >Re: javaws on command line (From: Scott Kovatch <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.