Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Can't run java preferences utility under java 5



Removing deployment.properties doesn't seem to work (the newly generated
file is identical to the old one and I still get the same exception). The
stack (which follows) reveals some kind of font error. I really don't want
to do a clean install (unless someone can give me advice on how to port my
stuff over).
Thanks, Jack


STACK:
[LaunchRunner Error] com.sun.deploy.panel.ControlPanel.main(String[]) threw
an exception:
java.lang.NullPointerException
at
apple.awt.CGraphicsEnvironment.cloneStyledFont (CGraphicsEnvironment.java:220
)
at
apple.awt.CGraphicsEnvironment.setupLogicalFonts (CGraphicsEnvironment.java:2
11)
at
apple.awt.CGraphicsEnvironment.loadFonts(CGraphicsEnvironment.java:201)
at sun.font.FontManager.findFont2D(FontManager.java:1209)
at sun.font.FontManager.findFont2D(FontManager.java:1155)
at java.awt.Font.getFont2D(Font.java:358)
at sun.font.FontManager.getFont2D(Native Method)
at
sun.font.FontDesignMetrics.initMatrixAndMetrics (FontDesignMetrics.java:167)
at sun.font.FontDesignMetrics.<init>(FontDesignMetrics.java:160)
at apple.awt.CToolkit.getFontMetrics(CToolkit.java:1195)
at java.awt.Component.getFontMetrics(Component.java:2532)
at javax.swing.JComponent.getFontMetrics(JComponent.java:1547)
at
javax.swing.text.WrappedPlainView.updateMetrics(WrappedPlainView.java: 302)
at
javax.swing.text.WrappedPlainView.updateChildren (WrappedPlainView.java:281)
at
javax.swing.text.WrappedPlainView.insertUpdate(WrappedPlainView.java: 447)
at
javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate (BasicTextUI.java:15
20)
at
javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate (BasicTextUI.ja
va:1763)
at
javax.swing.text.AbstractDocument.fireInsertUpdate (AbstractDocument.java:184
)
at
javax.swing.text.AbstractDocument.handleInsertString (AbstractDocument.java:7
54)
at
javax.swing.text.AbstractDocument.insertString(AbstractDocument.java: 711)
at javax.swing.text.PlainDocument.insertString (PlainDocument.java:114)
at javax.swing.text.AbstractDocument.replace (AbstractDocument.java:673)
at javax.swing.text.JTextComponent.setText(JTextComponent.java: 1441)
at com.sun.deploy.panel.JSmartTextArea.setText (JSmartTextArea.java:62)
at com.sun.deploy.panel.JSmartTextArea.<init> (JSmartTextArea.java:27)
at
com.sun.deploy.panel.SecurityPanel.initComponents(SecurityPanel.java:63)
at com.sun.deploy.panel.SecurityPanel.<init>(SecurityPanel.java:35)
at
com.sun.deploy.panel.ControlPanel.initComponents(ControlPanel.java:127)
at com.sun.deploy.panel.ControlPanel.<init>(ControlPanel.java:45)
at com.sun.deploy.panel.ControlPanel.main(ControlPanel.java:373)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl
java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:88)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
at
apple.launcher.JavaApplicationLauncher.launch (JavaApplicationLauncher.java:5
2)




On 5/25/05 10:25 AM, "Scott Kovatch" <email@hidden> wrote:



Before you reinstall or do anything, save a copy of ~/Library/Caches/
Java/deployment.properties, and check Console.app for a stack trace.
Then file a bug. :-)

Then, get rid of deployment.properties and try again.

Scott

On May 25, 2005, at 9:21 AM, Jack Berman wrote:


After installing OS X 10.4 and java 5, I went to run java
preferences in
Utilities/Java/J2SE 5.0/ to change my version preference and I got the
following:


Cannot Launch Java Application.
Uncaught exception in main method: java.lang.NullpointerException

I used the new compiler and VM through the terminal and all seems
to work.
I would appreciate any thoughts or suggestions.


------------------ Scott Kovatch Apple Computer Java Runtime Classes Cleveland Hts, OH email@hidden

I am Scott Kovatch, and I approved this message.





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.