How can I enable java applet plug-in and Web Start applications via terminal?
Since the last Java update to Snow Leopard, I have found that the system periodically disables the Java applet plug-in after a period of disuse. I know I can go to /Applications/Utilities/Java Preferences and just click to re-enable Java. But I want to write a script which will do this periodically for a couple hundred Mac users where I work.
My question is - how can I reenable the Java applet plug-in and web start applications via Terminal command? Is this possible? Is there a plist file that can be modified, etc.?
Bob Reed
It is my understanding that Apple's most recent Java update automatically disables Java after a certain period of time that it hasn't been used. We don't want users to have to keep re-enabling it. So we wanted to find a way to do this via script either run by a Casper JSS server or stored locally on each workstation. With the guidance provided by Mark Jalbert above and some text from a script written by Rich Trouton, I was able to make a script (with some minor changes) and a launch agent to re-run the script upon login. So the preference is always enabled.
For your reference, the script content is:
#!/bin/sh
# DYNAMICALLY SET THE UUID FOR THE BYHOST FILE NAMING
if [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` == "00000000-0000-1000-8000-" ]]; then
MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c51-62 | awk {'print tolower()'}`
elif [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` != "00000000-0000-1000-8000-" ]]; then
MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-62`
fi
# Set the the "Enable applet plug-in and Web Start Applications" setting in the Java Preferences for the current user.
/usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsEnabled" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
/usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsEnabled bool true" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
/usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsLastUsed" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
/usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsLastUsed real $(( $(date "+%s") - 978307200 ))" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
The launch agent plist content is:
<?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>Disabled</key>
<false/>
<key>Label</key>
<string>org.XXXXX.enableJavaPlugin</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>/Library/Scripts/XXXXX/enableJava_plugin.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartOnMount</key>
<true/>
</dict>
</plist>
I hope this is helpful to anyone wishing to keep the Java web plugin enabled.
Bob
Message was edited by: Robert Reed2
Similar Messages
-
No option to Enable the Java applet plug-in and Web Start applications
How do I Enable the Java applet plug-in and Web Start applications
Their is no option under java preferences General Tab
The options i get their are
Run appelts
in their own proccess
Within the browser process
(Defaut most compatible)
Under the network tab im told
By default java applets and web start applications use network settings in the system network preferences. Only advanced users should modify these settings
Any ideas on why it is like this?Mac OS 10.6.8
This happend once before when I was running 10.5.8 I fixed it but for the life of me i can't remember how i did it. -
If this code could work on Snow Leopard as well, that would be awesome. I have a code to tell if Java is enable or disabled on any web browser, but it does not detect if the Java Preferences "Enable applet plug-in and Web Start Applications is enabled" is enabled or disabled. Just looking for a specific code to tell if this option is disabled or enabled.
Thank youLaunch Applications/Utilities/Java Preferences.app by double-clicking.
EDIT; But I think you are confusing this with JavaScript which has nothing to do with it. -
Hello all,
Using ML 10.8.1 and Safair 6.0
After Java patch 1.7.0_07 ENable applet plug-in and Web start checkbox is gone! The check box to enable Safari to load Java pages is 100% gone, missing, just not there anymore.
When I go to the Java test page it shows that I have Java 7 loaded. Has anyone else run into this problem or have a solution to enable true load loading in Safari and bring back the Enable applet plug-in and Web Start application check box in ML...
ThanksI found out something very interesting. I noticed that another page would show up for less than have a second before the ML Java Preference would show up. I did a video recording of this and moved frame by frame. I show that the page / pane showing up had the following option:
Run applets: in their own process
within their browser process
Both boxes for the two are unchecked.
Then this page would disappear and nother would show up without the option / check box
Enable applet plugin and Web Start applications
Strange -
How can i run java on the i mac to start the voice chat?
i have imac
and i have downloaded java
i want to open voice chat websites
e.g. www.63oon.comHello,
Not sure, but could it be this?
Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality
http://support.apple.com/kb/HT5559 -
how can i enable java for mac os x 10.7
Download Java for Lion here http://support.apple.com/kb/DL1421 and make sure it is enabled in Safari prefs, security.
-
TS2446 How Can I Enable My Account?? And Get Free Apps
How Can I Enable My Account?? And Get Free Apps
Depending on why it's been disabled, you might be able to re-enable it via this page : http://appleid.apple.com, then 'reset your password'
Or you might need to contact Apple : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page -
How can I enable FTP on the DMP and How can I FTP to it and then remove the files that were deployed to the DMP flash? My platform of DMS is 5.2.2
Hi Temur, ok. I do the above procedure and it worked fine
Now, I have other question?
How can I reproduce any file (for example: a video, an url page, an image), that is in the flash of DMP?
Índice de ftp://172.17.15.22/tmp/ftproot/tmp/ftproot/tmp/ftproot/usb_1/
Subir al directorio superior.
Nombre Tamaño Última modificación
Sample Videos.lnk
1 KB
17/06/2011
06:25:00 a.m.
deployment
29/06/2010
04:14:00 a.m.
lost+found
25/02/2010
12:00:00 a.m.
video futbol en la playa.mp4
1390 KB
29/06/2010
01:08:00 a.m.
videofutbol.mp4
1390 KB
29/06/2010
01:38:00 a.m.
I like, that el DMP when loss conectivity with DMM, It display at the LCD screen, the video named videofutbol.mp4, this video As I show in the picture above, already in the flash of DMP.
I appreciate your early response.
Thanks -
How can I sign My applet for IE and Netscape without JavaPlugIn?
I think we can sign our applets with Javasigner.exe but this certificate is not being
supported by IE and Netscape. If you want to use this certificate with IE and Nets.
you must install JavaPlugIn to all users. I dont want to choose this way.
I think we have one alternative for this purpose.
For Netscape: Signing Tool
For IE: The program that included SDK-Java
But I could not find SDK-Java any where.
I think Microsoft have gave up to support the Java certification...
I am not sure.
How can I prepare signed applet that can be run on IE and Netscape?
This applet will have some permissions.The tool you need for signing cab files for the MS JVM is signtool.exe. I beleive that the .NET version of this tool can be used, as the signing process was not Java specific. You do need certificates in a different format than for jarsigner or the netscape signing tool. Verisign will happily sell you two different certificates, but there is probably a way to convert between formats using openssl or similar.
You'll also need to package your files in a cab instead of a jar. cabarc.exe is what we use here. Again, it does not seem to be Java specific, so you can probably still find it despite Microsoft no longer making their Java tools available. -
Apple-provided Java SE 6 web plug-in and Web Start functionality - Chrome
I have recently upgraded my work MBA to OSX 10.9.1 and need to use the Chrome browser to access several work sites. These work sites also need Java to run. I have followed the below procedures:
http://support.apple.com/kb/DL1572
and
http://support.apple.com/kb/ht5559
When I check Java version in Terminal, I get:
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
However, when I follow the instructions from the second link, the response to the second command (sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/disabled) yields the following response:
mv: rename /Library/Internet Plug-Ins/JavaAppletPlugin.plugin to /Library/Internet Plug-Ins/disabled/JavaAppletPlugin.plugin: Not a directory
In http://support.apple.com/kb/DL1572, it indicates that "On systems that have not already installed Java for OS X 2012-006, this update disables the Java SE 6 applet plug-in. To use applets on a web page, click on the region labeled "Missing plug-in" to download the latest version of the Java applet plug-in from Oracle". How do I get the Java SE 6 applet plug-in back to use in Chrome?
Thanks.No thoughts on this? The application of interest is IBM GERS.
Additionally, I have to use Juniper Network Connect to access work network when travelling away from the office and it is not working either after Mavricks upgrade.
Thanks. -
How can i enable java in Safari 7.0.4
There is one web-site I like that uses Java for their webcam. I want to enable Java just for that site. How can I do it? I've gone to Safari Prefs--->Security and enabled Java to run on that site in unsafe mode (always allow) on other websites its blocked. But it still won't run.
Thanks for the reply Carolyn, but the "Allow Plug-ins" is selected. I even have gone to the Java control panel in System Prefs and listed the web-site on Java's exception list. It still won't run, telling me my security settings are preventing it from running. I know I'm missing something, I'm just not sure what.
-
HT4312 how can I enable my citrix plug-in?
I use go to meeting frequently, and citrix keeps downloadingthe application. I contacted them, and they told me to enable my citrix plug-in to prevent this from happpening repeatedly. Can anyone tell me how to do this?
ThanksBy any chances is this a thing called Citrix Receiver? If so, I would think that to prevent it from doing anything would be to uninstall it. It comes with it's own installer and uninstaller. The installer would have installed a abrowser plugin called CitrixICAClientPlugIn.plugin in your /Library/Internet Plug-Ins.
-
How can I enable java on Firefox
when I am try to login in my account an error shows that java is not enable please enable your java from browser settings but I am not getting any option in browser setting to enable java.
I am using Samsung galaxy s3 mini and I have already enabled java from my mobile setting.
If any one has any idea about this then please tell.Java browser plugins do not exist on mobile browsers.
JavaScript is supported which is different. If you run the noscript extension then disabling that for the site might make sense. -
I can not open java applet on a certain website. started about 4 days ago.
== Issue
==
Firefox is having problems with certain web sites
== Description
==
i am no longer able to open the first 4 webcams on this website. this started about 4 or 5 days ago. i also have a macbook that is running the same firefox and i can open them on that computer. i can open the webcams if i open them under the safari browser. i am running version 3.6.3 on mac os 10.6.3 thanks
== URL of affected sites
==
http://www.colorado-west.com/cooke/
== Troubleshooting information
==
java embedding plugin 0.9.7.2 mrj plugin 1.0 jep 0.9.7.2
== Firefox version
==
3.6.3
== Operating system
==
Intel Mac OS X 10.6
== User Agent
==
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
== Plugins installed
==
*-Gecko default plugin
*Runs Java applets using the latest installed versions of Java. For more information: Java Embedding Plugin. Run version test: Java Information.
*iPhoto6
*Garmin Communicator Plug-in Version 2.8.2.0
*3.0.50106.0
*The Google Earth Plugin allows you to view 3D imagery and terrain in your web browser.
*The Flip4Mac WMV Plugin allows you to view Windows Media content using QuickTime.
*Shockwave Flash 10.0 r42
*The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the QuickTime Web site.Try to reload those web page(s) and bypass the cache.
* Press and hold Shift and left-click the Reload button.
* Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
* Press "Cmd + Shift + R" (MAC) -
How can I activate Java in Win 7 and Firefox 9?
I need to log into a site that requires Java. I am running Window 7 64bit home Ed and Firefox 9.0.1. Java 64 is installed but does not show up in Firefox. I can find no troubleshooting info anywhere on your site regarding this problem
Firefox 9.0.1 is a 32-bit browser. No scheduled release date for a 64-bit version of Firefox at this time, as far as I know. Read the following from the Java site, especially the last sentence in the section "Summary":
*https://www.java.com/en/download/faq/java_win64bit.xml
'''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
Not related to your question, but...
You may need to update some plug-ins. Check your plug-ins and update as necessary:
*Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
*Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
*'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
*Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
*Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]
Maybe you are looking for
-
Thunderbolt to VGA and and HDMI to DVI running at once
I am currently using a Thunderbolt to vga converter to as my setup for my mac mini. I just remembered that with the mac mini came a HDMI to DVI converter. My question is; if i buy an other monitor, can i use the HDMI to DVI converter to run two monit
-
I know why I have been having problems with FF 3.6.16 and the last thunderbird update
I am in Canada and for some reason downloads for both 3.6.12 FF and the last Thunderbird update was the BritishVersions thats why I have UK search engines, not the US versions maybe that is why I am have trouble with my email and addons. The other 2
-
Why does the smiley images in iChat on my Macbook Pro come across as symbols to my iPad and iPhone recipients? example: <3 comes across instead of a "Heart" image
-
Buttons trigger continue even when just Show/Hide (captivate 6 windows 7)
I have a simple image button that is designed to act as a close button for a modal popup window in Captivate (Constructed from a smart shape and a caption box). The button uses the "Hide" method to hide a target Group. This works fine, but I have not
-
Invoice Verification (MIRO) allocation via Delivery note
We are in 5.00 version In our system the same Delivery note number could be associated not only to different vendor, but even to the same vendor in different years. In the last case the system allocate ALL the Delivery notes. I try to use the F4 func