Skip to main content
Question

Set Java Preferences w/script


Show first post

43 replies

Forum|alt.badge.img+15
  • Contributor
  • 208 replies
  • September 16, 2014

@kempt
Were just going to create that directory in the Finder, and place the two files we created with a text editor such as text edit or text wrangler. Then open Composer and drag the two files into the left side of composer.....wait and it will re-create the folder structure with the files. You can check the permissions at the bottom of the window on composer.
Dan De Rusha


Forum|alt.badge.img+6
  • Contributor
  • 34 replies
  • September 16, 2014

@dderusha
So, when you're saying "Create that directory in the Finder", how are you accomplishing this? The way I would do it doesn't seem to be re-creating in Composer - it just adds the one file.


Forum|alt.badge.img+15
  • Contributor
  • 208 replies
  • September 16, 2014

ok forget composer for a minute...... Go to your finder. Do you see this path?
/Library/Application Support/Oracle/Java/Deployment/
If not in the Finder, go up to File - New Folder. and create this exact folder structure.
Drop your config and properties files into Deployment.
Now open composer.
Drag the config and properties files to the left hand side of composer.
wait and composer now should create this same path with the files in it...hit the button at the top to make a .dmg and your done. Dan De Rusha


Forum|alt.badge.img+6
  • Contributor
  • 34 replies
  • September 16, 2014

That's what I tired doing before. I was expecting to see the path on the left, but if I click the .txt file I dragged in, the path in the main window is correct.


Forum|alt.badge.img+15
  • Contributor
  • 208 replies
  • September 16, 2014

@kempt
Left side will show the name of the package....click on it to change the name.
Right side shows the path.


Forum|alt.badge.img+6
  • Contributor
  • 34 replies
  • September 16, 2014

Gotcha. Just ran it in Self-Service - policy ran but no change in the settings occurred. Also, is there any way to allow non-admins to run this policy? We need to push it out to our non-admin students.


Forum|alt.badge.img+15
  • Contributor
  • 208 replies
  • September 16, 2014

you can "push" it with a policy if you would like. you can also set it up in self service. regarding no change in the settings, did you set the permissions before making it?


Forum|alt.badge.img+6
  • Contributor
  • 34 replies
  • September 16, 2014

I did, according to your description. We have one Owner (our admin account) and one Group (students). For Deployment, the Owner has RWX, Group has RX, and Everyone has X. For the two files, Owner has RW, Group has RW and Everyone has R.


Forum|alt.badge.img+15
  • Contributor
  • 208 replies
  • September 16, 2014

This is a global preference not at the user level
/Library not ~/Library
the owner is root, group is admin

drwxr-xr-x 5 root admin 170 May 14 14:15 Java

all the way down


Forum|alt.badge.img+12
  • Contributor
  • 189 replies
  • September 29, 2014

FYI,

From http://www.java.com/en/download/help/jcp_security.xml

Starting with Java 8 Update 20, the Medium security level has been removed from the Java Control Panel. Only High and Very High levels are available. The exception site list provides users with the option of allowing the same applets that would have been allowed by selecting the Medium option but on a site-by-site basis therefore minimizing the risk of using more permissive settings.

Forum|alt.badge.img+10
  • Contributor
  • 91 replies
  • September 29, 2014

I was wondering if anyone has been able to disable "Check for Updates Automatically" via script with version 8 update 20?

If so would you mind sharing??

Thanks in advance...


Forum|alt.badge.img+6
  • Contributor
  • 34 replies
  • September 30, 2014

@dderusha, I switched the path to the root pay rather than the user. However, I'm still unclear on how you're telling me to set the permissions. What do you mean by "drwxr-xr-x 5 root admin 170 "?


Forum|alt.badge.img+15
  • Contributor
  • 208 replies
  • September 30, 2014

@kemt
can you post the permissions of your directory and files?


Forum|alt.badge.img+6
  • Contributor
  • 34 replies
  • September 30, 2014

Owner: root (0) R W X
Group: admin (80) R X
Everyone: X

Same for both files.


Forum|alt.badge.img+15
  • Contributor
  • 208 replies
  • September 30, 2014

you should be good to go with those permissions.


Forum|alt.badge.img+6
  • Contributor
  • 34 replies
  • September 30, 2014

So after I run that package in Self-Service, I should be able to open my Java Preferences and see the slider set to Medium?


Forum|alt.badge.img+15
  • Contributor
  • 208 replies
  • September 30, 2014

yes, make sure you check the box for FEU - fill existing users.


Forum|alt.badge.img+6
  • Contributor
  • 34 replies
  • September 30, 2014

Still not doing it, and I had FEU checked.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings