Benches macOS

8

AquaLookAndFeel is failing after last Jav…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

After the last Java security update our programs failed during getting the

available Look & Feels:

Example program:

-----------------------------------------------

package tw.test.laf;

import javax.swing.UIManager;

import javax.swing.UIManager.LookAndFeelInfo;

public class LafTest {

public static void main(String[] args) {

LookAndFeelInfo[] laf = UIManager.getInstalledLookAndFeels();

}

}

-----------------------------------------------

Exeption:

-----------------------------------------------

Exception in thread "main" java.lang.NoClassDefFoundError: apple/laf/CoreUIControl

at com.apple.laf.AquaLookAndFeel$1.run(AquaLookAndFeel.java:123)

at java.security.AccessController.doPrivileged(Native Method)*

at com.apple.laf.AquaLookAndFeel.initialize(AquaLookAndFeel.java:120)*

at javax.swing.UIManager.setLookAndFeel(UIManager.java:544)

at javax.swing.UIManager.setLookAndFeel(UIManager.java:589)

at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1351)

at javax.swing.UIManager.initialize(UIManager.java:1440)

at javax.swing.UIManager.maybeInitialize(UIManager.java:1428)

at javax.swing.UIManager.getInstalledLookAndFeels(UIManager.java:429)

at tw.test.laf.LafTest.main(LafTest.java:9)

-----------------------------------------------

(Running from Eclipse)

Any tip why this happens ?

Should I submit a bug ?

8 replies

Sign in or join Beachball Help to reply.

  1. 0

    Thomas Welsch

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hi again,

    just for information: Looks like an eclipse problem...

    "/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java" .... is working 🙂

    But recreation of the installed JVM in eclipse seems not to be sufficient to fix this issue....

    Looking further....

  2. 0

    Robert Brandon

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    remember reading on the tech notes (or maybe on MacRumors or AppleInsider) that Apple disabled AquaLookAndFeel for unsigned apps.

  3. 0

    Thomas Welsch

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for that tip, what I found on
    http://support.apple.com/kb/HT3632 seems

    only be valid for applets...

    But I will check that direction.

  4. 0

    Thomas Welsch

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Seems that there is a real problem... also for other peoples...

    http://mail-archives.apache.org/mod_mbox/incubator-pivot-dev/200906.mbox/%3C99B9 [email protected]%3E

    No fix found yet....

  5. 0

    YonasJ

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    This is affecting me as well.

  6. 0

    YonasJ

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I was able to fix this for my JRE1.6.0 runtime by adding the following JAR to the JRE in eclipse:

    /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSup port.framework/Versions/A/Resources/Java/JavaRuntimeSupport.jar

    Kinda bizzare, but it seems to be working so far.

  7. 0

    Thomas Welsch

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Greg Brown was sending me also a workaround:

    Original messages follows:

    ---------------------------------------------------------

    OK, I found a workaround:

    - Create a new 1.6.0 JVM in Eclipse (I called it "1.6.0x")

    - Delete the old 1.6.0 JVM

    - Re-create the 1.6.0 JVM as a copy of 1.6.0x

    - Delete the 1.6.0x JVM

    These steps worked for me. I tried to post this as a reply to your discussion thread, but for some reason I can't create an account on discussions.apple.com (even though I already have a valid Apple ID).

    Good luck,

    Greg

    ---------------------------------------------------------

    Thanks to all folks for solving this,

    bye,

    Thomas

  8. 0

    dreish

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I got this exception for the first time running a simple Swing app through Eclipse after upgrading to Snow Leopard (10.6.1) (oddly, I never got it after any Java updates, and I think I always kept up-to-date on them).

    Adding the above /System/.../JavaRuntimeSupport.jar to the classpath fixed it for me. Thanks.