You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by Greg Brown <gk...@mac.com> on 2009/06/17 21:51:09 UTC
NoClassDefFoundError after updating to latest Java on OS X
Hi all,
I'm running into a problem after updating to the latest Java version
on OS X. It doesn't affect most Pivot development, but it does break
the JFreeChart-based charting provider. I get this exception at
application startup:
Exception in thread "main" java.lang.NoClassDefFoundError: apple/laf/
CoreUIControl
This class appears to be missing in the latest update. A simple test
case will reproduce it:
import javax.swing.JButton;
public class CoreUIControl {
public static void main(String[] args) {
new JButton();
}
}
I also can no longer edit the properties for JVM 1.6.0 in the
"Installed JREs" preferences in Eclipse.
I'm planning to file a bug to Apple - is anyone else seeing this
problem?
G
Re: NoClassDefFoundError after updating to latest Java on OS X
Posted by Greg Brown <gk...@mac.com>.
FYI, I found a workaround to the Eclipse problem - just wanted to pass it along in case anyone else runs into this:
- 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
On Wednesday, June 17, 2009, at 03:53PM, "Greg Brown" <gk...@mac.com> wrote:
>FYI, this only appears to affect execution in Eclipse. Running the
>sample from the command line works OK.
>
>On Jun 17, 2009, at 3:51 PM, Greg Brown wrote:
>
>> Hi all,
>>
>> I'm running into a problem after updating to the latest Java version
>> on OS X. It doesn't affect most Pivot development, but it does break
>> the JFreeChart-based charting provider. I get this exception at
>> application startup:
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError: apple/laf/
>> CoreUIControl
>>
>> This class appears to be missing in the latest update. A simple test
>> case will reproduce it:
>>
>> import javax.swing.JButton;
>>
>> public class CoreUIControl {
>> public static void main(String[] args) {
>> new JButton();
>> }
>> }
>>
>> I also can no longer edit the properties for JVM 1.6.0 in the
>> "Installed JREs" preferences in Eclipse.
>>
>> I'm planning to file a bug to Apple - is anyone else seeing this
>> problem?
>>
>> G
>>
>
>
>
Re: NoClassDefFoundError after updating to latest Java on OS X
Posted by Greg Brown <gk...@mac.com>.
FYI, this only appears to affect execution in Eclipse. Running the
sample from the command line works OK.
On Jun 17, 2009, at 3:51 PM, Greg Brown wrote:
> Hi all,
>
> I'm running into a problem after updating to the latest Java version
> on OS X. It doesn't affect most Pivot development, but it does break
> the JFreeChart-based charting provider. I get this exception at
> application startup:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: apple/laf/
> CoreUIControl
>
> This class appears to be missing in the latest update. A simple test
> case will reproduce it:
>
> import javax.swing.JButton;
>
> public class CoreUIControl {
> public static void main(String[] args) {
> new JButton();
> }
> }
>
> I also can no longer edit the properties for JVM 1.6.0 in the
> "Installed JREs" preferences in Eclipse.
>
> I'm planning to file a bug to Apple - is anyone else seeing this
> problem?
>
> G
>