Announcement

Collapse
No announcement yet.

Toggling Java Web Start version on OSX

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • erikkri
    replied
    The raw url has changed on github.

    Now the correct url to the script is:

    https://raw.githubusercontent.com/sk...aws-version.sh

    Leave a comment:


  • jarlund
    replied
    I thought I'd add our solution, which enables the Oracle Web Start to locate and use the Apple Java 6 JRE.

    Find the file $HOME/Library/Application Support/Oracle/Java/Deployment/deployment.properties

    Add the following lines (modify as needed, this is for example assuming there's only one JRE already in the file):

    deployment.javaws.jre.1.registered=false
    deployment.javaws.jre.1.enabled=true
    deployment.javaws.jre.1.osarch=x86_64
    deployment.javaws.jre.1.osname=Mac OS X
    deployment.javaws.jre.1.path=/Library/Java/Home/bin/java
    deployment.javaws.jre.1.location=http://java.sun.com/products/autodl/j2se
    deployment.javaws.jre.1.product=1.6.0
    deployment.javaws.jre.1.platform=1.6

    This way the Oracle Web Start will pick up the Apple JRE, and be able to run programs that needs Java 6 (Content Studio).

    Leave a comment:


  • erich
    replied
    Originally Posted by Ted View Post
    After some testing it seems that running
    Code:
    sudo /usr/libexec/PlistBuddy -c "Delete :JavaWebComponentVersionMinimum" /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.plist
    This command is the right one.

    However I have noticed that Apple brought things back again and even if it was previously resolved I see now in XProtect.meta.plist
    Code:
    <key>MinimumPlugInBundleVersion</key>
    <string>1.7.11.22</string>
    and webstart doesn't work anymore.

    The problem was resolved by executing the above sudo command again.

    Erich

    Leave a comment:


  • Ted
    replied
    After some testing it seems that running
    Code:
    sudo /usr/libexec/PlistBuddy -c "Delete :JavaWebComponentVersionMinimum" /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.plist
    does indeed work. However, there was a space between the last '.' and 'plist' in post #7 which caused the command to fail

    Leave a comment:


  • Elen
    replied
    Originally Posted by chrlov View Post
    It seems Apple has updated Xprotect anti-malware, stopping all Java Web Components with a version number below 1.6.0_37-b06-435. Unfortunately, this Java version is not yet available.

    From /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.plist:

    Code:
    <key>JavaWebComponentVersionMinimum</key>
    <string>1.6.0_37-b06-435</string>
    and

    Code:
    <key>com.oracle.java.JavaAppletPlugin</key>
    <dict>
            <key>MinimumPlugInBundleVersion</key>
            <string>1.7.11.22</string>
    </dict>
    Thanks to Carl-Oskar Westman at Gota Media for pointing out this.
    Here's a workaround for this problem (at least it worked for me on Mac OS 10.7.5): http://forums.macrumors.com/showpost...5&postcount=28

    In short:

    To re-enable Java 6:

    Code:
    sudo /usr/libexec/PlistBuddy -c "Delete :JavaWebComponentVersionMinimum" /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.plist
    To re-enable Java 7:

    Code:
    sudo vi "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.plist"
    and change 1.7.11.22 to 1.7.11.19

    Leave a comment:


  • erich
    replied
    Hi Ted,

    Thank for the clarification.

    Also, an update to the Apple Developer 1.6.0_38 should solve the problem.

    Regards,

    Erich

    Leave a comment:


  • Ted
    replied
    Hi Erich,

    What I did was:
    1. Run the toggle script
    2. Got the error message: "Can not find message file: No such file or directory"
    3. Tried unblocking java6 in the XProtect.meta.plist
    4. No luck. Same error message
    5. Installed Java 6 again


    I tried googling the "Can not find message file: No such file or directory" message, but all I could find was "Java 6 must be corrupted, reinstall"

    Last time Java 7 was updated and disabled Java 6 (sometime autumn 2012), I tried the steps outlined in http://support.apple.com/kb/HT5559 and they worked. But this time, after running the toggle script, some of those commands give an error message when creating the folders.

    Leave a comment:


  • erich
    replied
    Hi Ted,

    Are you saying that you performed the steps to re-enabled Java RE Web Start
    http://support.apple.com/kb/HT5559 and didn't work?

    Originally Posted by Ted View Post
    I tried juggling the permissions as explained above, but I still got the message "Can not find message file: No such file or directory".
    -Erich

    Leave a comment:


  • Ted
    replied
    I tried juggling the permissions as explained above, but I still got the message "Can not find message file: No such file or directory". I ended up re-installing java 6 which I downloaded from Apple (http://support.apple.com/kb/DL1572). That worked.

    I'm not sure it will work out of the box or if you need to do the permissions thing as well.

    If you require java in your browser (like BankId) you will probably get a security warning after doing this
    Last edited by Ted; 02-01-2013, 08:48 AM.

    Leave a comment:


  • erich
    replied
    and if you want to disable Java 7 and re-enable the Apple-provided Java SE 6 plug-in

    These steps are what you need:

    http://support.apple.com/kb/HT5559

    -Erich

    Leave a comment:


  • chrlov
    replied
    It seems Apple has updated Xprotect anti-malware, stopping all Java Web Components with a version number below 1.6.0_37-b06-435. Unfortunately, this Java version is not yet available.

    From /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.plist:

    Code:
    <key>JavaWebComponentVersionMinimum</key>
    <string>1.6.0_37-b06-435</string>
    and

    Code:
    <key>com.oracle.java.JavaAppletPlugin</key>
    <dict>
            <key>MinimumPlugInBundleVersion</key>
            <string>1.7.11.22</string>
    </dict>
    Thanks to Carl-Oskar Westman at Gota Media for pointing out this.

    Leave a comment:


  • jamesk
    replied
    So running the command:

    sudo /usr/libexec/PlistBuddy -c "Delete :JavaWebComponentVersionMinimum" /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta. plist

    (from the previously linked apple thread) seems to have done the trick here and we have a working Content Studio on a mac again

    Leave a comment:


  • jamesk
    replied
    or this: https://discussions.apple.com/message/21090693#21090693 (which is to say we are seeing the same problem here)

    Leave a comment:


  • jamesk
    replied
    see: https://discussions.apple.com/thread...art=0&tstart=0 perhaps a permissions problem?

    Leave a comment:


  • Ted
    replied
    To specify: I ran this script to switch from Java 7 to Java 6 since we are currently running Ece 5.1. Java 7 did an auto update this morning.

    Leave a comment:

Working...
X