This page last changed on Nov 12, 2008 by scytacki.
keywords: jnlp fix mac osx webstart java
Here is a bug documenting the problem:
CC created an application for fixing this problem. It will ask for administrator priviledges when it is run:
This application only works for Java 1.5.0_06 and 1.5.0_07, so, if you have a different version of Java 1.5, or if the application above doesn't work, you can try pasting the following into the OSX Terminal application. The Terminal Application is located in the Applications/Utilities folder.
For java 1.5.0_06 and 1.5.0_07 on OS X 10.4
For Java 1.5.0_13 and 1.5.0_16 on OS X 10.4
For Java 1.5.0_13 and 1.5.0_16 on OS X 10.5
A copy of the string.properties file that is missing from javaws.jar for Java 1.5 on MacOSX is attached to this page: com/sun/javaws/jardiff/resources/strings.properties
The following script pops up a dialog asking the user for admin privileges. The webstart fix it runs is for 10.4 with java 1.5.0_13
osascript -e "Do shell script \"cd /tmp ; curl http://confluence.concord.org/download/attachments/10877/jardiff_strings_file.zip > jardiff_strings_file.zip ; unzip jardiff_strings_file.zip ; zip -u '/Applications/Utilities/Java/Java Web Start.app/Contents/MacOS/lib/javaws.jar' com/sun/javaws/jardiff/resources/strings.properties ; rm com/sun/javaws/jardiff/resources/strings.properties jardiff_strings_file.zip ; cd -\" with administrator privileges"
The problem can be tested using these instructions:
The Fix Java Webstart application is an XCode project checked into CC's cvs repository under Projects/FixJavaWebstart.
I reported this bug to Apple. They gave me an bug id: 4696251. I don't believe this bug is public. The gist of apples response is that they cannot duplicate this bug in the current java seed.
Java 2 SE 6.0 Release 1 Developer Preview 4
A new MacOSX Java bug that applies to Java 1.5.0_16 on MacOS X 10.4 (not 10.5)
This one only applies to java 1.5.0_16. Some how a bug was introduced that stops webstart from running extensions:
I tried to run the command-line version on Matt Fishbach's MacOS10.5 (running java 1.5.0_13) and it gave me permission error. user gloriasass has admin privileges.
tolman-110:~ gloriasass$ cd /tmp ; curl http://confluence.concord.org/download/attachments/10877/jardiff_strings_file.zip > jardiff_strings_file.zip ; unzip jardiff_strings_file.zip ; zip -u "/System/Library/Frameworks/JavaVM.framework/Home/lib/javaws.jar" com/sun/javaws/jardiff/resources/strings.properties ; rm com/sun/javaws/jardiff/resources/strings.properties jardiff_strings_file.zip ; cd -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1209 100 1209 0 0 5951 0 -
: :- - : :- - : :- 0
zip I/O error: Permission denied
zip error: Could not create output file (/System/Library/Frameworks/JavaVM.framework/Home/lib/javaws.jar)
tolman-110:~ gloriasass$ ls -lah /tmp/com/sun/javaws/jardiff/resources/total 0drwxrwxrwx 2 gloriasass wheel 68B Jan 22 17:45 .drwxr-xr-x 3 gloriasass wheel 102B Dec 5 13:04 ..
Posted by hiroki at Jan 22, 2008 20:48
Try changing the end of the last script from:
with administrator privileges
Posted by stepheneb at Jan 22, 2008 21:54
From Hiroki's, message above it seems he wasn't use the script that asks for authentication.
Hiroki, you need to sudo first I'll update the scripts above to have sudo in them.
Posted by scytacki at Jan 23, 2008 10:09