Page 2 of 8

Re: Java OS X problem NEW!

PostPosted: Thu Jan 31, 2013 1:01 pm
by ROCLASI
I wonder if we can download the older Java version. If you know a download link please share.
The thing is that Java 7 is only available for 64bit machines. I kinda doubt that it will install on older (not that old) Macs.
IF this is the case then this is a MAJOR issue for a bunch of Mac-based sites.

Re: Java OS X problem NEW!

PostPosted: Thu Jan 31, 2013 1:07 pm
by mboegem
Some more information here.

After ignoring the apple java update that did remove the java webstart for a couple of weeks, I clicked update by accident 2 weeks ago.
This forced me to follow the apple fix for that, but I couldn't really make it work again.
I noticed that my java-preferences app was gone and restored that from my time-machine backup.

After ticking the 'Enable applet plug-in and Web Start applications' checkbox it all worked fine again.
But reading this post I noticed Johan's link wasn't working.
A quick look at the above checkbox learned it had been unticked again.

I remember installing another Mac update after that, but as stated above: that didn't involve any Java changes.

Anyway, I just ticked that checkbox again and everything works as before again...

Re: Java OS X problem NEW!

PostPosted: Thu Jan 31, 2013 1:23 pm
by david.pearce
Does anyone have a link. Most of the apple Java links have gone and only 37 is showing?!

Re: Java OS X problem NEW!

PostPosted: Thu Jan 31, 2013 1:53 pm
by tgs
On our customers Macs with OS X 10.7.5 I have both Java 1.6.0_35 and 1.6.0_37.

But always the same:
com.apple.JavaWebStart: Bad installation. No JRE found in configuration file: No such file or directory

I tried running Servoy on a Mac with OS X 10.7.5 and it seems that also Java 1.6.0_35 is not working!

But Servoy Smart-Client is working on my Mac with OS X 10.8.2 and Java 1.6.0_37!?

Only a couple of our customers can work with their Servoy solution today! The rest is not amused...

Regards

Re: Java OS X problem NEW!

PostPosted: Thu Jan 31, 2013 2:13 pm
by ROCLASI
Found a solution via the Apple forum.

Use the following command in the terminal:
Code: Select all
sudo /usr/libexec/PlistBuddy -c "Delete :JavaWebComponentVersionMinimum" /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.plist


This of course will be a temporary fix because this file is being managed by Apple. But at least it will get you going again.

Hope this helps.

Credits to the fine people of MoovIT:
http://moovit.de/index.php/TechBlog/Tec ... er-restart

Re: Java OS X problem NEW!

PostPosted: Thu Jan 31, 2013 2:27 pm
by ROCLASI
I guess this command requires that you have some developer tools (Xcode) installed so here is what it does:
The original file:

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

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>JavaWebComponentVersionMinimum</key>
    <string>1.6.0_37-b06-435</string>
    <key>LastModification</key>
    <string>Thu, 31 Jan 2013 04:41:14 GMT</string>
    <key>PlugInBlacklist</key>
    <dict>
        <key>10</key>
        <dict>
            <key>com.macromedia.Flash Player.plugin</key>
            <dict>
                <key>MinimumPlugInBundleVersion</key>
                <string>11.3.300.271</string>
            </dict>
            <key>com.oracle.java.JavaAppletPlugin</key>
            <dict>
                <key>MinimumPlugInBundleVersion</key>
                <string>1.7.11.22</string>
            </dict>
        </dict>
    </dict>
    <key>Version</key>
    <integer>2028</integer>
</dict>
</plist>


The new file:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>LastModification</key>
    <string>Thu, 31 Jan 2013 04:41:14 GMT</string>
    <key>PlugInBlacklist</key>
    <dict>
        <key>10</key>
        <dict>
            <key>com.macromedia.Flash Player.plugin</key>
            <dict>
                <key>MinimumPlugInBundleVersion</key>
                <string>11.3.300.271</string>
            </dict>
            <key>com.oracle.java.JavaAppletPlugin</key>
            <dict>
                <key>MinimumPlugInBundleVersion</key>
                <string>1.7.11.22</string>
            </dict>
        </dict>
    </dict>
    <key>Version</key>
    <integer>2028</integer>
</dict>
</plist>


So it strips out this part:
Code: Select all
<key>JavaWebComponentVersionMinimum</key>
<string>1.6.0_37-b06-435</string>


Hope this helps.

Re: Java OS X problem NEW!

PostPosted: Thu Jan 31, 2013 2:37 pm
by david.pearce
the command line worked for me!

Still mystified how apple can tamper with the OS without my knowledge!!!!!

Re: Java OS X problem NEW!

PostPosted: Thu Jan 31, 2013 2:40 pm
by LXS
The command line has also worked on a mac of my customer!
Thanks a lot!

Re: Java OS X problem NEW!

PostPosted: Thu Jan 31, 2013 2:42 pm
by tgs
Thank you very much Robert!

It also works on our customers Macs.

Re: Java OS X problem NEW!

PostPosted: Thu Jan 31, 2013 3:00 pm
by IT2Be
For those of you that experience a crippled java installation or at least a continuing issue with jws (like I had) I finally solved it by doing the following (OS 10.8):

Recover Java Preferences app from Time Machine (or any other backup you have)
Install Java 1.7.
Manually install Java 1.6 from the .pkg file (or use an app like Pacifist) that you can download from the Apple website.

And voila, I can now run all my java versions again and jws works (for me miraculously) with Java 1.7 now.
Did not test with Servoy though but this is already much more than what I could use before :)

Re: Java OS X problem NEW!

PostPosted: Thu Jan 31, 2013 3:01 pm
by patrick
Works here, too.

If it is true what the Finalcut guys think what happend ("Apple seems to have patched java though the backdoor and that keeps FinalCutServer from launching the Webstart application"), it makes me think: isn't it a bit scary that you use a computer where the manufacturer simply disables stuff without your knowledge and agreement by some calling home or however this is done? Not sure I want that.

Re: Java OS X problem NEW!

PostPosted: Thu Jan 31, 2013 3:04 pm
by ROCLASI
I understand that if you want a more permanent solution (for the time being) you can prevent the plist file to be updated by unchecking the following checkbox.
security&privacy_advanced.png
security&privacy_advanced.png (106.57 KiB) Viewed 6759 times

You go to System preferences > Security & Privacy > Advanced. Here you can uncheck the 'Automatically update safe downloads list'.
This should prevent the XProtect.meta.plist to be updated again.

Hope this helps.

Re: Java OS X problem NEW!

PostPosted: Thu Jan 31, 2013 3:11 pm
by david.pearce
Thanks,

when was there last a safe download of java :lol:

Re: Java OS X problem NEW!

PostPosted: Thu Jan 31, 2013 4:05 pm
by hpmxxx
Thank you very much Robert! Our Mac users are back in "production".

Re: Java OS X problem NEW!

PostPosted: Thu Jan 31, 2013 4:20 pm
by ROCLASI
Hi Patrick,

patrick wrote:If it is true what the Finalcut guys think what happend ("Apple seems to have patched java though the backdoor and that keeps FinalCutServer from launching the Webstart application"), it makes me think: isn't it a bit scary that you use a computer where the manufacturer simply disables stuff without your knowledge and agreement by some calling home or however this is done? Not sure I want that.


Mac OS X is indeed calling home. XProtect automatically updates it's definitions and with last nights update it told the OS that minimum version of Java has to be 1.6.0_37-b06-435. So I guess there is a Java update coming since at this time the current version is 1.6.0_37-b06-434.