unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: Leo Famulari <leo@famulari.name>
Cc: guix-devel@gnu.org
Subject: Re: Trying to build latest Icedtea / Java 6 [security update]
Date: Thu, 16 Jun 2016 04:02:12 +0200	[thread overview]
Message-ID: <20160616040212.339f3e6f@scratchpost.org> (raw)
In-Reply-To: <20160601062954.GA14412@jasmine>

On Wed, 1 Jun 2016 02:29:54 -0400
Leo Famulari <leo@famulari.name> wrote:

> On Wed, Jun 01, 2016 at 08:07:53AM +0200, Ricardo Wurmus wrote:
> >    http://icedtea.classpath.org/hg/icedtea6/rev/60be25a84f2d
> > 
> > we should apply this change to the 1.13.11 sources.  
> 
> Tested successfully, and applied as 1c6303fae.

Not sure when exactly Java broke (I'm not using it much) but it worked before and now I get (when using a GUI program):

Exception in thread "main" java.lang.NullPointerException
	at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)
	at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219)
	at sun.awt.FontConfiguration.init(FontConfiguration.java:107)
	at sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:774)
	at sun.font.SunFontManager$2.run(SunFontManager.java:431)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.font.SunFontManager.<init>(SunFontManager.java:376)
	at sun.awt.FcFontManager.<init>(FcFontManager.java:35)
	at sun.awt.X11FontManager.<init>(X11FontManager.java:57)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at java.lang.Class.newInstance(Class.java:442)
	at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
	at sun.font.SunFontManager.getInstance(SunFontManager.java:250)
	at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:264)
	at sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:1107)
	at javax.swing.JComponent.getFontMetrics(JComponent.java:1617)
	at javax.swing.plaf.basic.BasicGraphicsUtils.getPreferredButtonSize(BasicGraphicsUtils.java:276)
	at javax.swing.plaf.basic.BasicButtonUI.getPreferredSize(BasicButtonUI.java:376)
	at javax.swing.plaf.basic.BasicButtonUI.getMinimumSize(BasicButtonUI.java:366)
	at javax.swing.JComponent.getMinimumSize(JComponent.java:1735)
	at javax.swing.BoxLayout.checkRequests(BoxLayout.java:483)
	at javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:301)
	at java.awt.Container.preferredSize(Container.java:1796)
	at java.awt.Container.getPreferredSize(Container.java:1780)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1655)
	at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:729)
	at java.awt.Container.preferredSize(Container.java:1796)
	at java.awt.Container.getPreferredSize(Container.java:1780)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1655)
	...

Does using a Java GUI "fat client" application work for you?

$ java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (IcedTea 3.0.1) (linux-gnu build 1.8.0_91-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

Note that I didn't install icedtea:jdk . I've since installed it into my user profile - no change.

Minimal example to reproduce:

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.WindowConstants;

public class A {
	public static void main(String[] args) {
		JFrame f = new JFrame();
		JLabel l = new JLabel("Hello");
		f.add(l); // comment me
		f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
		//f.pack();
		f.setVisible(true);
	}
}

(breaks as soon as the label is in the frame)

  reply	other threads:[~2016-06-16  2:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-30  4:59 Trying to build latest Icedtea / Java 6 [security update] Leo Famulari
2016-05-31 19:13 ` Ricardo Wurmus
2016-05-31 22:52   ` Leo Famulari
2016-06-01  6:07     ` Ricardo Wurmus
2016-06-01  6:29       ` Leo Famulari
2016-06-16  2:02         ` Danny Milosavljevic [this message]
2016-06-16  6:55           ` Ricardo Wurmus
2016-07-20 22:13             ` IcedTea Java 8 font problems Danny Milosavljevic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160616040212.339f3e6f@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    --cc=leo@famulari.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).