unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Vong <alexvong1995@gmail.com>
To: 24327@debbugs.gnu.org
Subject: bug#24327: java does not support swing
Date: Mon, 29 Aug 2016 13:21:18 +0800	[thread overview]
Message-ID: <87a8fwkv5d.fsf@gmail.com> (raw)

Hi,

Our current java does not support swing. To reproduce, first install
java and clojure. Then start the clojure repl by running:
  $ ~/.guix-profile/bin/java -cp ~/.guix-profile/share/java/clojure-1.8.0.jar clojure.main

Then try the repl by typing:
  => (+ 1 2 3)
  6

Now run:
  => (javax.swing.JOptionPane/showMessageDialog nil "Hello World")
  NullPointerException   sun.awt.FontConfiguration.getVersion (FontConfiguration.java:1264)

Note that the above test case is taken from
<https://clojure.org/guides/getting_started>.

In contrast, if we replace ~/.guix-profile/bin/java by /usr/bin/java in
the command, we do not get a nullpointerexception (my base distro is
debian testing). So there should be a problem in our java build. Any
ideas? 

Thanks,
Alex

             reply	other threads:[~2016-08-29  5:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-29  5:21 Alex Vong [this message]
2016-09-11  2:14 ` bug#24327: java does not support swing 宋文武

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=87a8fwkv5d.fsf@gmail.com \
    --to=alexvong1995@gmail.com \
    --cc=24327@debbugs.gnu.org \
    /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).