2 Replies Latest reply on Apr 26, 2007 12:23 AM by un1t

    no JAVA_HOME environment.. hmm - why?

      run standalone clearspace:


      $ ./start-clearspace.sh



      Starting Clearspace




      Error -- no JAVA_HOME environment variable has been set.


      --> $ java -version

      java version "1.5.0_07"

      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)

      Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)



      Why I cannot start clearspace?

      In advance thanks:)

        • Re: no JAVA_HOME environment.. hmm - why?

          Looks like java is in your path, but you'll still need the JAVA_HOME environment variable set. Here's how to set it:


          $ export JAVA_HOME=/path/to/java

          then run

          $ ./start-clearspace.sh


          I think you can also put the export command into a shell script named setJavaHome.sh and put that shell script in the same directory as the start-clearspace.sh. Then when you run the start-clearspace.sh script it will auto run the setJavaHome so you don't have to do an export each time. I haven't actually tried this on linux but it works on windows using the batch files.