* bug#24327: java does not support swing
@ 2016-08-29 5:21 Alex Vong
2016-09-11 2:14 ` 宋文武
0 siblings, 1 reply; 2+ messages in thread
From: Alex Vong @ 2016-08-29 5:21 UTC (permalink / raw)
To: 24327
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#24327: java does not support swing
2016-08-29 5:21 bug#24327: java does not support swing Alex Vong
@ 2016-09-11 2:14 ` 宋文武
0 siblings, 0 replies; 2+ messages in thread
From: 宋文武 @ 2016-09-11 2:14 UTC (permalink / raw)
To: Alex Vong; +Cc: 24327-done
Alex Vong <alexvong1995@gmail.com> writes:
> 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?
Yeah, openjdk-8 loads fontconfig via dlopen.
Fixed in commit cab1760de.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-11 2:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-29 5:21 bug#24327: java does not support swing Alex Vong
2016-09-11 2:14 ` 宋文武
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).