Error unsatisfiedLinkError when create a plot on Mac OS X

A free public discussion forum for the JFreeChart class library.

Error unsatisfiedLinkError when create a plot on Mac OS X

Postby Kreisquadratur » Mon Apr 20, 2009 9:34 am

I get an UnsatisfiedLinkError when trying to create a plot on Mac OS X 10.5.6 with Java 6.

Any suggestions what I could do to fix this?

Caused by: java.lang.UnsatisfiedLinkError: apple.laf.CoreUIControl.initNativeCoreUI()I
at apple.laf.CoreUIControl.initNativeCoreUI(Native Method)
at apple.laf.CoreUIControl.initCoreUI(CoreUIControl.java:50)
at apple.laf.CUIAquaLookAndFeel.initialize(CUIAquaLookAndFeel.java:117)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:540)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:585)
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1339)
at javax.swing.UIManager.initialize(UIManager.java:1426)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1414)
at javax.swing.UIManager.getDefaults(UIManager.java:664)
at javax.swing.UIManager.getColor(UIManager.java:706)
at org.jfree.chart.JFreeChart.<clinit>(JFreeChart.java:252)
at org.jfree.chart.ChartFactory.createHistogram(ChartFactory.java:2050)
...
Kreisquadratur
 
Posts: 2
Joined: Mon Apr 20, 2009 9:31 am

Re: Error unsatisfiedLinkError when create a plot on Mac OS X

Postby Kreisquadratur » Mon Apr 20, 2009 10:51 am

Some information: I tried jFreeGraph version 1.0.9 as well as 1.0.13. The samples run without failure.
Kreisquadratur
 
Posts: 2
Joined: Mon Apr 20, 2009 9:31 am

Re: Error unsatisfiedLinkError when create a plot on Mac OS X

Postby david.gilbert » Tue Apr 21, 2009 8:47 pm

JFreeChart just looks up Swing's UIManager to get the default color for a chart background:

Code: Select all
public static final Paint DEFAULT_BACKGROUND_PAINT
            = UIManager.getColor("Panel.background");


I'm not completely sure why this should cause a problem, although I have some vague recollection about looking into a similar problem some time back. I think I was considering removing the use of UIManager here (and just setting the background paint to something neutral, perhaps transparent)...I don't recall why I didn't end up doing that.

Anyway, I'd like to understand the actual cause of the problem...is anyone else seeing this?
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
david.gilbert
JFreeChart Project Leader
 
Posts: 11352
Joined: Fri Mar 14, 2003 10:29 am

Re: Error unsatisfiedLinkError when create a plot on Mac OS X

Postby robertT » Wed Apr 22, 2009 4:13 am

david.gilbert wrote:Anyway, I'd like to understand the actual cause of the problem...is anyone else seeing this?


I use OS X 10.5.6 as my primary development machine. I have not encountered this problem. I normally use Java 1.5, but just tried 1.6, still no problem. However I did not try a histogram as the OP did.
robertT
 
Posts: 6
Joined: Tue Jun 26, 2007 2:17 pm


Return to JFreeChart - General

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 20 guests