Search code examples
cfmllucee

Lucee Express on local Dev


I’m currently running window 7, ACF 11, and IIS 7 and would like to install Lucee express to try.

I’m having the hardest time getting Lucee to work on my local desktop. I followed this article http://www.gpickin.com/index.cfm/blog/setting-up-lucee-in-my-dev-environment-changing-ports I can’t get the Lucee welcome page to work.

  • I download the Lucee Express from here http://lucee.org/downloads.html
  • I extract the file to C:\lucee
  • Ran the C:\lucee\bin\startup.bat
  • Navigated to 127.0.0.1:8888
  • I get the follow message: Firefox can't establish a connection to the server at 127.0.0.1:8888

Can someone tell me what am I doing wrong? Thank you in advance for your insights.


Solution

  • As identified in the comments on the question: you are missing the environment variable pointing to your Java runtime (you need one of JAVA_HOME or JRE_HOME.

    This can be achieved in one of a coupla ways.

    Set it globally:

    Control Panel > System > Advanced system settings > Environment Variables > System Variables > New...

    Or set it for just that environment by editing the startup.bat file you've already been using:

    SET JAVA_HOME=[path]
    

    In both situations you need a path to either a JRE or a JDK. You say you have CF11 already installed, so you can simply point to its one, which will be a subdirectory of your CF install, as Leigh points out above. So something like:

    SET JRE_HOME=D:\apps\Adobe\ColdFusion\11\express\jre
    

    If you have a Java JDK installed instead and want to use that, use JAVA_HOME instead of JRE_HOME, eg:

    SET JAVA_HOME=D:\apps\Oracle\Java\jdk\1.8.0_60
    

    As these things can be installed anywhere, you'll just need to locate 'em and use the path accordingly. You want to point it to the top level directory of your JRE or JDK, which contains the bin subdirectory.