Re: JAVA_OPTS not accessible in my Clojure project
The problem - if anyone is interested - is that I had not set $JAVA_OPTS in the Emacs config file. Sorry, for being a balloon. Thanks Aidy On 13 January 2014 10:34, aidy lewis wrote: > Hi Softaddicts > > Thanks for the advice, but my aim was to retrieve the JAVA_OPTS from my > environment variables in order to not hard-code them. > > Aidy > > > On 13 January 2014 09:46, Softaddicts wrote: > >> To set java properties on the cmd line you need to enter something like: >> >> -Djavax.net.ssl.keyStore=value >> >> try >> >> :jvm-opts ["-Djavax.net.ssl.keyStore=full-spec-of-your-file"] >> >> Luc P. >> >> > Hi Phill, >> > >> > Thanks for the heads up. >> > >> > I've entered this in project.clj >> > :jvm-opts ["javax.net.ssl.keyStore"] >> > >> > Restarted the CIDER REPL and entered in core.clj >> > >> > (System/getProperty "javax.net.ssl.keyStore") >> > >> > I evaluated that expression and it returns nil. >> > >> > But, if I go to the command-line and at the root of the project type >> 'lein >> > repl' >> > >> > a-project.core=> (System/getProperty "javax.net.ssl.keyStore") >> > >> > The certificate path is returned >> > >> > > ./certs/dev.bbc.co.uk.p12\ >> > >> > Many Thanks >> > >> > Aidy >> > >> > >> > >> > >> > >> > On 13 January 2014 00:25, Matching Socks wrote: >> > >> > > The Leiningen sample project >> > > >> https://github.com/technomancy/leiningen/blob/master/sample.project.clj >> > > refers to a :jvm-opts key and a JVM_OPTS environment variable. >> > > >> > > -- >> > > -- >> > > 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 >> > > Note that posts from new members are moderated - please be patient >> with >> > > your first post. >> > > 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 >> > > --- >> > > You received this message because you are subscribed to the Google >> Groups >> > > "Clojure" group. >> > > To unsubscribe from this group and stop receiving emails from it, >> send an >> > > email to clojure+unsubscr...@googlegroups.com. >> > > For more options, visit https://groups.google.com/groups/opt_out. >> > > >> > >> > >> > >> > -- >> > @AidyLewis >> > >> > -- >> > -- >> > 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 >> > Note that posts from new members are moderated - please be patient with >> your first post. >> > 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 >> > --- >> > You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to clojure+unsubscr...@googlegroups.com. >> > For more options, visit https://groups.google.com/groups/opt_out. >> > >> -- >> Softaddicts sent by ibisMail from my ipad! >> >> -- >> -- >> 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 >> Note that posts from new members are moderated - please be patient with >> your first post. >> 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 >> --- >> You received this message because you are subscribed to the Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > @AidyLewis > -- @AidyLewis -- -- 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 Note that posts from new members are moderated - please be patient with your first post. 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: JAVA_OPTS not accessible in my Clojure project
Hi Softaddicts Thanks for the advice, but my aim was to retrieve the JAVA_OPTS from my environment variables in order to not hard-code them. Aidy On 13 January 2014 09:46, Softaddicts wrote: > To set java properties on the cmd line you need to enter something like: > > -Djavax.net.ssl.keyStore=value > > try > > :jvm-opts ["-Djavax.net.ssl.keyStore=full-spec-of-your-file"] > > Luc P. > > > Hi Phill, > > > > Thanks for the heads up. > > > > I've entered this in project.clj > > :jvm-opts ["javax.net.ssl.keyStore"] > > > > Restarted the CIDER REPL and entered in core.clj > > > > (System/getProperty "javax.net.ssl.keyStore") > > > > I evaluated that expression and it returns nil. > > > > But, if I go to the command-line and at the root of the project type > 'lein > > repl' > > > > a-project.core=> (System/getProperty "javax.net.ssl.keyStore") > > > > The certificate path is returned > > > > > ./certs/dev.bbc.co.uk.p12\ > > > > Many Thanks > > > > Aidy > > > > > > > > > > > > On 13 January 2014 00:25, Matching Socks wrote: > > > > > The Leiningen sample project > > > > https://github.com/technomancy/leiningen/blob/master/sample.project.clj > > > refers to a :jvm-opts key and a JVM_OPTS environment variable. > > > > > > -- > > > -- > > > 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 > > > Note that posts from new members are moderated - please be patient with > > > your first post. > > > 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 > > > --- > > > You received this message because you are subscribed to the Google > Groups > > > "Clojure" group. > > > To unsubscribe from this group and stop receiving emails from it, send > an > > > email to clojure+unsubscr...@googlegroups.com. > > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > > > > > > -- > > @AidyLewis > > > > -- > > -- > > 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 > > Note that posts from new members are moderated - please be patient with > your first post. > > 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 > > --- > > You received this message because you are subscribed to the Google > Groups "Clojure" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to clojure+unsubscr...@googlegroups.com. > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- > Softaddicts sent by ibisMail from my ipad! > > -- > -- > 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 > Note that posts from new members are moderated - please be patient with > your first post. > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- @AidyLewis -- -- 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 Note that posts from new members are moderated - please be patient with your first post. 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: JAVA_OPTS not accessible in my Clojure project
Hi Phill, Thanks for the heads up. I've entered this in project.clj :jvm-opts ["javax.net.ssl.keyStore"] Restarted the CIDER REPL and entered in core.clj (System/getProperty "javax.net.ssl.keyStore") I evaluated that expression and it returns nil. But, if I go to the command-line and at the root of the project type 'lein repl' a-project.core=> (System/getProperty "javax.net.ssl.keyStore") The certificate path is returned > ./certs/dev.bbc.co.uk.p12\ Many Thanks Aidy On 13 January 2014 00:25, Matching Socks wrote: > The Leiningen sample project > https://github.com/technomancy/leiningen/blob/master/sample.project.clj > refers to a :jvm-opts key and a JVM_OPTS environment variable. > > -- > -- > 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 > Note that posts from new members are moderated - please be patient with > your first post. > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- @AidyLewis -- -- 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 Note that posts from new members are moderated - please be patient with your first post. 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: JAVA_OPTS not accessible in my Clojure project
Hi Phil, M-x cider-jack-in, but the JAVA_OPT properties are also nil if I do a lein run. Thanks Aidy On 12 January 2014 05:25, Matching Socks wrote: > How did you start the Emacs Cider REPL? > > -- > -- > 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 > Note that posts from new members are moderated - please be patient with > your first post. > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- @AidyLewis -- -- 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 Note that posts from new members are moderated - please be patient with your first post. 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: JAVA_OPTS not accessible in my Clojure project
Hi Juan, Maybe I should rephrase my issue. If I create a new leiningen project $ lein new foo And type $ lein repl user=> (System/getProperty "javax.net.ssl.keyStore") > /Users/lewisa29/certs/dev.bbc.co.uk.p12 Now if I enter this into core.clj of the foo project (ns foo.core) (System/getProperty "javax.net.ssl.keyStore") ;; C-x C-e And execute this function through the Emacs CIDER REPL, I receive 'nil'. Why can I not access the keystore in $JAVA_OPTS in my project? Thanks Aidy On 10 January 2014 17:47, juan.facorro wrote: > Hi Aidy, > > What do mean when you say "load the nRepl in the lein project"? > > Juan > > On Friday, January 10, 2014 9:42:02 AM UTC-3, Aidy Lewis wrote: >> >> Clojurians, >> >> For some reason JAVA_OPTS are not accessible in my Clojure project. >> >> The command line seems to be OK, if I: >> >> $ lein repl >> >> project-ns => (System/getProperty "javax.net.ssl.keyStore") >> >> -> "/../certs/dev.bbc.co.uk.p12" >> >> >> However, if I load the nRepl in the lein project: >> >> project-ns => (System/getProperty "javax.net.ssl.keyStore") >> >> -> nil >> >> Not sure why this is the case? >> >> Thanks >> -- >> @AidyLewis >> > -- > -- > 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 > Note that posts from new members are moderated - please be patient with > your first post. > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- @AidyLewis -- -- 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 Note that posts from new members are moderated - please be patient with your first post. 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
JAVA_OPTS not accessible in my Clojure project
Clojurians, For some reason JAVA_OPTS are not accessible in my Clojure project. The command line seems to be OK, if I: $ lein repl project-ns => (System/getProperty "javax.net.ssl.keyStore") -> "/../certs/dev.bbc.co.uk.p12" However, if I load the nRepl in the lein project: project-ns => (System/getProperty "javax.net.ssl.keyStore") -> nil Not sure why this is the case? Thanks -- @AidyLewis -- -- 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 Note that posts from new members are moderated - please be patient with your first post. 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
clj-http over SSL?
Hi, Is it possible to use clj-http over SSL, and if so could someone please post an example which uses a SSL client cert? Many Thanks -- @AidyLewis -- -- 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 Note that posts from new members are moderated - please be patient with your first post. 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.