emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#24327: closed (java does not support swing)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#24327: closed (java does not support swing)
Date: Sun, 11 Sep 2016 02:15:02 +0000

Your message dated Sun, 11 Sep 2016 10:14:45 +0800
with message-id <address@hidden>
and subject line Re: bug#24327: java does not support swing
has caused the debbugs.gnu.org bug report #24327,
regarding java does not support swing
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
24327: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24327
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: java does not support swing Date: Mon, 29 Aug 2016 13:21:18 +0800 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
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



--- End Message ---
--- Begin Message --- Subject: Re: bug#24327: java does not support swing Date: Sun, 11 Sep 2016 10:14:45 +0800 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Alex Vong <address@hidden> 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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]