Get Lein to run 32-bit JVM on Windows

146 views
Skip to first unread message

JvJ

unread,
Jul 5, 2016, 4:35:13 AM7/5/16
to Clojure
Is it possible to configure Leiningen to run a 32-bit JVM by default? I've already tried changing the LEIN_CMD and JAVA_HOME to the x86 executable paths, but it still runs the amd64 JVM.

Any tips? I'm doing this for overtone, since it doesn't support amd64 on Windows.

David Powell

unread,
Jul 5, 2016, 5:02:53 AM7/5/16
to clojure
I think you need to set LEIN_JAVA_CMD to affect the jvm actually used to start leiningen itself.

On Tue, Jul 5, 2016 at 9:35 AM, JvJ <kfjwh...@gmail.com> wrote:
Is it possible to configure Leiningen to run a 32-bit JVM by default?  I've already tried changing the LEIN_CMD and JAVA_HOME to the x86 executable paths, but it still runs the amd64 JVM.

Any tips?  I'm doing this for overtone, since it doesn't support amd64 on Windows.

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

JvJ

unread,
Jul 5, 2016, 3:17:02 PM7/5/16
to Clojure
I think when I wrote LEIN_CMD, I meant LEIN_JAVA_CMD.  I've already set it to the x86 JVM path, with no luck so far.

(System/getProperty "os.arch") still returns "amd64", and overtone still doesn't work right.

Niels van Klaveren

unread,
Jul 6, 2016, 3:08:27 AM7/6/16
to Clojure
If system/getProperty "os.arch" says it's 64 bits, it means the processor is a 64 bits compatible processor, not that the Java process is 64 or 32 bits.
If you want to see what the JVM data model is you need to use (System/getPropery  "sun.arch.data.model") and see what it returns (either "32" or "64").

JvJ

unread,
Jul 6, 2016, 1:52:11 PM7/6/16
to Clojure
My solution was to dual-boot linux.  I think it's about time anyway.
Reply all
Reply to author
Forward
0 new messages