Custom Java Path?

Miranda's Avatar

Miranda

11 Apr, 2014 06:42 PM

Is there a way to specify a JAVA_HOME specific to our Gradle build? Ideally such that it would fall back to the JAVA_HOME environment variable if invalid? I think the ideal would be another environment variable so that it doesn't have to be altered across different computers, but the Java path is likely pretty consistent anyway, so not a huge deal if it has to be hard-coded.

The reason I ask is because our build is memory-intensive enough to need 64-bit Java. However, FlashDevelop debugging only works with 32-bit Java, apparently, and also uses the JAVA_HOME variable.

Thanks!

  1. Support Staff 1 Posted by Yennick Trevels on 12 Apr, 2014 12:16 AM

    Yennick Trevels's Avatar

    I think what you're looking for is the 'org.gradle.java.home' property which you can set in gradle.properties: http://www.gradle.org/docs/current/userguide/build_environment.html

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac