On May 11, 2:07 am, Terry Hannant <thann...@gmail.com> wrote:
> Hi
>
> You can use
>
> (. System getProperty "java.class.path") - To check class path
>
> (. System getProperty "user.dir") - Current working directory
>
> from your Slime REPL to check
Thanks.
For future reference: my problem was based on a misunderstanding of
where the CLASSPATH comes from in this setup (slime + emacs + clojure
on Vista). I assumed that it was based on the environment variable
CLASSPATH. In fact, the env variable is ignored and the class path is
set up in ~/.emacs in the (setq swank-clojure-extra-classpaths ...).
Simply adding a fully resolved path to my working dir did the trick
(the working dir has the gui subdirectory in it).
I have now managed to buid a simple gui using NetBeans and read / set
the fields in clojure proxies running in emacs+slime.
Minor mysteries (comments, explanations welcome):
- How does one specify "." in swank-clojure-extra-classpaths? When I
literally used ".", it seemed to get expanded at load-time to the
emacs startup directory. (Workaround: specify a fully resolved path
to your working dir).
- Where does the output from println go? I put println's in the proxy
callbacks, but I don't see the output in the slime repl nor in the
*Messages* buffer (I know that the callbacks are working, because they
also alter components of the gui - and that can be seen).
- Why does closing the test gui cause slime to stop?
thanx
pt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---