The bash example is

export JVM_OPTS=-Xms4G ...

missed the = ...

Luc
> If you are running in a unix shell, something like
> 
> JVM_OPTS=-Xms4G ...
> 
> Followed by
> export JVM_OPTS
> 
> Bash allows you to combine the two as in: 
> 
> export JVM_OPTS-Xms4G ...
> 
> In a windows Cmd shell, something like this should work:
> 
> set JVM_OPTS=Xms4G ...
> 
> before running lein from the command line.
> 
> Luc
> 
> 
> 
> 
> > I should be switching over to Leiningen 2 shortly in any case, but I am 
> > curious. How does one "set JVM_OPTS as an environment variable"?
> >    --Larry
> > 
> > 
> > On 5/21/12 11:42 AM, Phil Hagelberg wrote:
> > > On Mon, May 21, 2012 at 5:28 AM, Raju Bitter<rajubit...@googlemail.com>  
> > > wrote:
> > >>> How do I set jvm options for a lein repl initiated independently of a
> > >>> project?   In particular, I want the heap expansion that results from 
> > >>> doing
> > >>> "M-x clojure-jack-in" in an emacs project.clj buffer with ":jvm-opts [
> > >>> "-Xms4G" "-Xmx4G"]" in its defproject form.
> > >> Larry is looking for a way to set that value across all projects, not
> > >> just for one project.
> > > You can set :jvm-opts in the user profile if you're using Leiningen 2.
> > > Otherwise set JVM_OPTS as an environment variable.
> > >
> > > -Phil
> > >
> > 
> > -- 
> > 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
> > 
> --
> Softaddicts<lprefonta...@softaddicts.ca> 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
> 
--
Softaddicts<lprefonta...@softaddicts.ca> 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

Reply via email to