keywords: jnlp fix mac osx webstart java
Here is a bug documenting the problem:
http://www.telscenter.org/jira/browse/PAS-171
CC created an application for fixing this problem. It will ask for administrator priviledges when it is run:
FixJavaWebStart.dmg
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
For Java 1.5.0_13 on OS X 10.4
For Java 1.5.0_13 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:
http://www.telscenter.org/confluence/display/PAS/JNLP+Test
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.
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 -
::- -::- -::- 0Archive: jardiff_strings_file.zip
inflating: com/sun/javaws/jardiff/resources/strings.properties
zip I/O error: Permission denied
zip error: Could not create output file (/System/Library/Frameworks/JavaVM.framework/Home/lib/javaws.jar)
/Users/gloriasass
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 ..