Forum Stats

  • 3,781,449 Users
  • 2,254,522 Discussions
  • 7,879,706 Comments

Discussions

OSX Java 8 ver 45 BREAKS Copy/Paste Clipboard Functionality in Applets (WEBMIN)

2978651
2978651 Member Posts: 3

Yesterday OSX asked me to update Java, which like a loyal minion I did. It updated to Java 8 version 45 which has now broken the clipboard functionality (AGAIN) in Java on OSX.

On the previous version I fixed this by adding permission java.awt.AWTPermission "accessClipboard"; into the java.policy file located at the folllowing locations. Doesn't work at all ... no matter what I try.

I use WEBMIN a LOT to admin my Linux boxes and it is now absolutely useless without copy and paste functionality when I open text files to edit them, the popup applet window will no longer accept copy and paste commands. Can anyone help with this?  Why is Oracle constantly BREAKING JAVA ????

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/security/ja va.policy

/Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/lib/securit y/java.policy

java.policy file below:

// Standard extensions get all permissions by default

grant codeBase "file:${{java.ext.dirs}}/*" {
    permission java.security.AllPermission;
};

// MacOS X extensions START
grant codeBase "file:${user.home}/Library/Java/Extensions/*" {
    permission java.security.AllPermission;
};

grant codeBase "file:/Library/Java/Extensions/*" {
    permission java.security.AllPermission;
};

grant codeBase "file:/System/Library/Java/Extensions/*" {
    permission java.security.AllPermission;
};

grant codeBase "file:/Network/Library/Java/Extensions/*" {
    permission java.security.AllPermission;
};
// MacOS X extensions END


// default permissions granted to all domains

grant { 
    // Allows any thread to stop itself using the java.lang.Thread.stop()
    // method that takes no argument.
    // Note that this permission is granted by default only to remain
    // backwards compatible.
    // It is strongly recommended that you either remove this permission
    // from this policy file or further restrict it to code sources
    // that you specify, because Thread.stop() is potentially unsafe.
    // See the API specification of java.lang.Thread.stop() for more
        // information.
    permission java.lang.RuntimePermission "stopThread";

    // allows anyone to listen on un-privileged ports
    permission java.net.SocketPermission "localhost:1024-", "listen";

    // "standard" properies that can be read by anyone

    permission java.util.PropertyPermission "java.version", "read";
    permission java.util.PropertyPermission "java.vendor", "read";
    permission java.util.PropertyPermission "java.vendor.url", "read";
    permission java.util.PropertyPermission "java.class.version", "read";
    permission java.util.PropertyPermission "os.name", "read";
    permission java.util.PropertyPermission "os.version", "read";
    permission java.util.PropertyPermission "os.arch", "read";
    permission java.util.PropertyPermission "file.separator", "read";
    permission java.util.PropertyPermission "path.separator", "read";
    permission java.util.PropertyPermission "line.separator", "read";

    permission java.util.PropertyPermission "java.specification.version", "read";
    permission java.util.PropertyPermission "java.specification.vendor", "read";
    permission java.util.PropertyPermission "java.specification.name", "read";

    permission java.util.PropertyPermission "java.vm.specification.version", "read";
    permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
    permission java.util.PropertyPermission "java.vm.specification.name", "read";
    permission java.util.PropertyPermission "java.vm.version", "read";
    permission java.util.PropertyPermission "java.vm.vendor", "read";
    permission java.util.PropertyPermission "java.vm.name", "read";
    
    // MacOSX properties START
    // All properties documented in http://developer.apple.com/documentation/Java/Reference/Java14SysProperties/inde x.html
    // can be set from an applet, or via the Java 1.4.2 Plugin Settings application.
    permission java.util.PropertyPermission "apple.awt.*", "read, write";
    permission java.util.PropertyPermission "apple.laf.*", "read, write";
    permission java.awt.AWTPermission "accessClipboard";

    // Apple-specific properties
    permission java.util.PropertyPermission "mrj.version", "read";

    // Deprecated properties for compatibility with Java 1.3.1
    permission java.util.PropertyPermission "com.apple.macos.useScreenMenuBar", "read, write";
    permission java.util.PropertyPermission "com.apple.hwaccel", "read, write";
    // MacOSX properties END
};

Tagged:

Answers

This discussion has been closed.