"Getting Started" is NOT starting for me...

7 views
Skip to first unread message

cliffc

unread,
Sep 19, 2008, 1:25:37 PM9/19/08
to Clojure
I downloaded clojure to my pc. I tried the "Getting Started" page:

user=> (+ 1 2 3)
6

Worked great... next step:

user=> (. javax.swing.JOptionPane (showMessageDialog nil "Hello
World"))

This hangs for me; the java process is idle. No output, no dialog box
or GUI. I'm using HotSpot 1.6.0_07 -client.

Thanks,
Cliff

Rich Hickey

unread,
Sep 19, 2008, 1:35:05 PM9/19/08
to Clojure
Works for me - doesn't help you I know.

Sometimes those dialogs show up not on top...

If you are want some more real-time support you can try the IRC:

#clojure on irc.freenode.net

It's likely someone can try it on the same OS etc.

Rich

Aaron Brooks

unread,
Sep 19, 2008, 1:51:38 PM9/19/08
to Clojure
Cliff,

This works fine for me with Sun JDK 1.6.0.05 on Gentoo Linux. I
assume this is on Windows for you?

-Aaron

On Sep 19, 1:25 pm, cliffc <cli...@acm.org> wrote:

.Bill Smith

unread,
Sep 19, 2008, 2:10:42 PM9/19/08
to Clojure
I see the same problem on Windows XP SP 3.

% java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)

Bill

Allen Rohner

unread,
Sep 19, 2008, 2:25:45 PM9/19/08
to Clojure
On Sep 19, 1:10 pm, ".Bill Smith" <william.m.sm...@gmail.com> wrote:
> I see the same problem on Windows XP SP 3.
>
> % java -version
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)
>

Works for me on XP SP2.

$ java -version
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)

Allen

Rich Hickey

unread,
Sep 19, 2008, 2:28:23 PM9/19/08
to clo...@googlegroups.com
Hmm... works here on Windows Server 2003, SP2

Does the equivalent Java program work on your config?

Rich

java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

.Bill Smith

unread,
Sep 19, 2008, 2:35:02 PM9/19/08
to Clojure
Correction: it *does* work for me. The dialog was behind my Emacs
window. Sorry Rich.

Bill

On Sep 19, 1:28 pm, "Rich Hickey" <richhic...@gmail.com> wrote:
> Hmm... works here on Windows Server 2003, SP2
>
> Does the equivalent Java program work on your config?
>
> Rich
>
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
>

Chouser

unread,
Sep 19, 2008, 2:35:34 PM9/19/08
to clo...@googlegroups.com
On Fri, Sep 19, 2008 at 2:25 PM, Allen Rohner <aro...@gmail.com> wrote:
>
> Works for me on XP SP2.
>
> $ java -version
> java version "1.5.0_04"

Also works ok on XP SP2 with Java 1.6 and a recent SVN clojure:

java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

--Chouser

AlamedaMike

unread,
Sep 19, 2008, 4:20:10 PM9/19/08
to Clojure
Hangs for me with Java 1.6.0_06 on Vista.

Mike

Rich Hickey

unread,
Sep 19, 2008, 4:32:21 PM9/19/08
to Clojure


On Sep 19, 4:20 pm, AlamedaMike <mi...@aminoarrays.com> wrote:
> Hangs for me with Java 1.6.0_06 on Vista.
>

Could anyone for whom this doesn't work please try the equivalent Java
code in the same environment:

javax.swing.JOptionPane.showMessageDialog(null, "Hello World");

from main in a console app?

Thanks,

Rich

Christopher Taylor

unread,
Sep 20, 2008, 8:54:12 AM9/20/08
to clo...@googlegroups.com
btw, showMessageDialog being a static method, isn't the preferred syntax

(javax.swing.JOptionPane/showMessageDialog nil "Hello World!")

both versions work here (standard OSX Java).

$ java -version
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-
b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)

--Chris

cliffc

unread,
Sep 21, 2008, 2:10:01 AM9/21/08
to Clojure
A little more info: failed on Windows XP, SP3.
Worked great for me on Linux.

Cliff

.Bill Smith

unread,
Sep 21, 2008, 12:51:36 PM9/21/08
to Clojure
Just so we're all clear about this, if you run the program from, say,
inferior mode in Emacs on Windows XP, the "Hello World!" dialog will
appear, but it may appear *behind* the Emacs window, i.e. non-
intuitively, it does not start out in front of all the other windows.
Moreover, nothing in the XP taskbar indicates that the dialog is
there. Cliff, can you verify that this isn't just a problem with the
dialog being hidden behind another window?

Bill

hoeck

unread,
Sep 22, 2008, 6:20:24 AM9/22/08
to Clojure
Hi,

same on my win2k machine, the first time a messageDialog or a swing
window is shown, it pops behind whatever application is currently
running. This includes the clojure repl running in windows cmd.exe or
(x)emacs. When opening a messageDialog the second time, it appears on
top of all other windows.
I guess this has something to do with the swing initialisation.

erik
Reply all
Reply to author
Forward
0 new messages