Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
RE: jnlps stopped working after installing JavaForMacOSX10.5Update4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: jnlps stopped working after installing JavaForMacOSX10.5Update4



Thanks - works like a charm :)

-----Original Message-----
From: java-dev-bounces+noam.yagil=email@hidden
[mailto:java-dev-bounces+noam.yagil=email@hidden] On
Behalf Of Stephen Bannasch
Sent: Friday, June 19, 2009 11:15 PM
To: email@hidden
Subject: Re: jnlps stopped working after installing
JavaForMacOSX10.5Update4

>After installing the JavaForMacOSX10.5Update4 on MacOS 10.5.7 on a
>64-bit system clicking on a jnlp link in Safari 4.01 or FireFox
>3.0.11 open up the XML editor Oxygen instead of Java Web Start.
>
>When I select a jnlp in the file system and open the Open With ...
>dialog I am not able to select the command line javaws application.
>There does not appear to be another Java Web Start application on
>the system. Before the update there was one located here:
>
>   /Applications/Utilities/Java
>
>Running the downloaded jnlp from the command line directly with javaws
works.
>
>This is a bit of a problem ...

This is reported in bug id: 6987107

Here's what I just added to the bug:

This problem has occurred for 4 out of 8 folks I work with who have
updated.

The update deletes the old Java Web Start app located here:

   /Applications/Utilities/Java/Java Web Start

and creates a new Java Web Start app located here:

   /System/Library/CoreServices/Java Web Start

and the update does not appear to rebuild the launch services
database properly (in some cases).

If you open /System/Library/CoreServices in the finder any
applications in CoreServices which are not registered in the launch
services database will be added.

After doing this jnlps worked again from Safari, FireFox, and the
Finder.

These are the steps we've asked our folks to follow in diagnosing
this problem and my data:

Step 1 - What state did the update leave you in?
First save a dump of your LS Database:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
LaunchServices.framework/Versions/A/Support/lsregister
-dump > ~/ls_db_dump-1.txt

And record the results of testing the 3 known user friendly ways to run
a jnlp:

- from firefox

   opens dashcode

- from safari

   opens dashcode

- from the finder

   opens dashcode

And find a .jnlp file in the finder and open "get info" on it and then
select the "open with" section, do you see "Java Web Start.app"?

   no it lists DashCode

Step 2 - Try logging out and back in
Now try logging out and back in and then do a second dump:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
LaunchServices.framework/Versions/A/Support/lsregister
-dump > ~/ls_db_dump-2.txt
(the applications are supposed to be searched for each time you login)
Then test all 3 ways again.

I have already logged out and in several times before collecting
these data so I didn't collect any more.

Step 3 - Try browsing to the folder containing the app
Now try opening the folder in the Finder:  /System/Library/CoreServices
do a third dump:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
LaunchServices.framework/Versions/A/Support/lsregister
-dump > ~/ls_db_dump-3.txt
(the finder is supposed to register all applications it displays)

Then test all 3 ways again.

jnlps now work in Safari, FireFox, and double-clicking in the finder

Here's the diff from the first dump to the one created after step 3:

--- /Users/stephen/ls_db_dump-1.txt	2009-06-19 15:42:03.000000000
-0400
+++ /Users/stephen/ls_db_dump-3.txt	2009-06-19 15:48:20.000000000
-0400
@@ -7505,7 +7505,7 @@
  	canonical id:  com.apple.quicklookdaemon (0x800030b6)
  	version:       170.9
  	mod date:      12/16/2008 18:02:16
-	reg date:      6/19/2009 10:58:36
+	reg date:      6/19/2009 15:47:07
  	type code:     'APPL'
  	creator code:  '????'
  	sys version:   0
@@ -11456,11 +11456,11 @@
  bundle	id:            14640
  	path:          /System/Library/CoreServices/Jar Launcher.app
  	name:          Jar Launcher
-	identifier:    com.apple.JarLauncher (0x8004ccee)
+	identifier:    com.apple.JarLauncher (0x8004cde5)
  	canonical id:  com.apple.jarlauncher (0x8003727d)
  	version:       12.3
  	mod date:      6/18/2009 21:44:47
-	reg date:      6/18/2009 21:49:09
+	reg date:      6/19/2009 15:47:20
  	type code:     'APPL'
  	creator code:  '????'
  	sys version:   0
@@ -66082,6 +66082,84 @@
  	library:
  	library items:

------------------------------------------------------------------------
--------
+bundle	id:            156464
+	path:          /System/Library/CoreServices/Java Web Start.app
+	name:          Java Web Start
+	identifier:    com.apple.JavaWebStart (0x8004ce0e)
+	canonical id:  com.apple.javawebstart (0x8004ce06)
+	version:       12.3
+	mod date:      6/18/2009 21:44:47
+	reg date:      6/19/2009 15:47:20
+	type code:     'APPL'
+	creator code:  'jnlp'
+	sys version:   0
+	flags:         apple-internal  display-name
relative-icon-path  ui-element
+	item flags:    container  package  application
extension-hidden  native-app  ppc  i386  x86_64
+	icon:          Contents/Resources/WebStart.icns
+	executable:    Contents/MacOS/Java Web Start
+	inode:         17492693
+	exec inode:    17492698
+	container id:  32
+	library:
+	library items:
+	--------------------------------------------------------
+	claim	id:            116676
+		name:          JNLP files
+		rank:          Default
+		roles:         Viewer
+		flags:         apple-internal  relative-icon-path
+		icon:          Contents/Resources/jnlp.icns
+		bindings:      .jnlp, application/x-java-jnlp-file
+-----------------------------------------------------------------------
---------
+bundle	id:            156592
+	path:          /System/Library/CoreServices/rcd.app
+	name:          rcd
+	identifier:    com.apple.rcd (0x8004ce4f)
+	version:       111
+	mod date:      12/16/2008 18:02:16
+	reg date:      6/19/2009 15:47:20
+	type code:     'APPL'
+	creator code:  '????'
+	sys version:   0
+	flags:         apple-internal  ui-element
+	item flags:    container  package  application
extension-hidden  native-app  ppc  i386
+	icon:
+	executable:    Contents/MacOS/rcd
+	inode:         3911472
+	exec inode:    5920157
+	container id:  32
+	library:
+	library items:
+-----------------------------------------------------------------------
---------
+bundle	id:            156720
+	path:          /System/Library/CoreServices/Screen Sharing.app
+	name:          Screen Sharing
+	identifier:    com.apple.ScreenSharing (0x8004ce68)
+	canonical id:  com.apple.screensharing (0x8004ce60)
+	version:       1.0.2
+	mod date:      5/21/2009 11:20:14
+	reg date:      6/19/2009 15:47:20
+	type code:     'APPL'
+	creator code:  '????'
+	sys version:   0
+	flags:         apple-internal  display-name  relative-icon-path
+	item flags:    container  package  application
extension-hidden  native-app  scriptable  ppc  i386
+	icon:          Contents/Resources/liaison.icns
+	executable:    Contents/MacOS/Screen Sharing
+	inode:         3926195
+	exec inode:    15602450
+	container id:  32
+	library:
+	library items:
+	--------------------------------------------------------
+	claim	id:            116704
+		name:          vnc URL
+		rank:          Default
+		roles:         Viewer
+		flags:         apple-internal
+		icon:
+		bindings:      vnc:
+-----------------------------------------------------------------------
---------
  volume	id:            32
  	path:          /
  	flags:         local  system  system-device

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

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:

This email sent to email@hidden

References: 
 >jnlps stopped working after installing JavaForMacOSX10.5Update4 (From: Stephen Bannasch <email@hidden>)
 >Re: jnlps stopped working after installing JavaForMacOSX10.5Update4 (From: Stephen Bannasch <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.