Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to set PATH environment variables in Cloude 9 (c9) IDE and/or run npm modules requiring Java
    primarykey
    data
    text
    <p>For various reasons (and because of a recent back injury), I needed to get an "ultra-light" laptop. I went with the recently best-selling <a href="http://rads.stackoverflow.com/amzn/click/B009LL9VDG" rel="nofollow">Samsung Chromebook</a>, and I can actually get quite a lot of real work done.</p> <p>I ported one of my <a href="https://c9.io/somecallmechief/ojs" rel="nofollow">projects (very alpha)</a> over to <a href="http://c9.io" rel="nofollow">Cloud9</a>, the service of which is outstanding (really, really good). Because c9 is effectively running NodeJs on NodeJs for each workspace you define: I can run all of my Node tasks; I can Grunt in c9; nearly anything I can do on a "full" OS, I can do in c9.</p> <p>Except for Java dependent tasks. Specifically with Grunt, there are a few tasks I can't run because no environment variable for Java can be found:</p> <pre><code>JAVA_HOME is no set, but java is required by jsdoc to run. </code></pre> <p>Never-minding the grammar, it is possible to run jsdoc (or closure-compiler, etc) by opening c9's proper Terminal which:</p> <pre><code>somecallmechief@ojs:~/406658 (master) $ which java /usr/bin/java </code></pre> <p>knows all about Java. I can even export the path and run my Grunt tasks in the terminal--but only in this Terminal instance.</p> <p>Given that Java is clearly part of my virtual workspace, is it possible to define the JAVA_HOME environment variable as a constant/persistent value? And if so, how? </p> <p>Thanks for listening</p> <ul> <li>and no, <code>npm install java</code> is not the answer </li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload