Answered <ask>Add Library on Tomcat Azure

  • Tuesday, June 12, 2012 3:48 AM
     
     

    Hi All,

    I just want to know how i can add library on My Tomcat which have run on Azure.i try to connect mssql azure via my jsp app which have running on Azure Cloud.

    Firstly I try to copy it manually from my local computer to my tomcat on RDP Azure, but when i try to restart tomcat on approot folder, i can't .System said that 

    "Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
    At least one of these environment variable is needed to run this program"

    Should i configure java_home manually so that i can restart my tomcat after i added some library ? or are there some solution for it ?

    Thanks

All Replies

  • Tuesday, June 12, 2012 4:11 PM
    Moderator
     
     Answered Has Code

    Hi,

    From you error message, i guess there's some environment variable has not been set, do you use IDE run the application on Tomcat? For example:

    rem ---------------------------------------------------------------------------
    rem Set CLASSPATH and Java options
    rem
    rem $Id: setclasspath.bat 505241 2012-06-13 00:22:58Z jfclere $
    rem ---------------------------------------------------------------------------
     
    set JAVA_HOME=D:/Java/jdk1.6.0_11
    set JRE_HOME=D:/Java/jre6
     
    rem Make sure prerequisite environment variables are set
    if not "%JAVA_HOME%" == "" goto gotJdkHome
    if not "%JRE_HOME%" == "" goto gotJreHome
    echo Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
    echo At least one of these environment variable is needed to run this program
    goto exit
    
    
    http://www3.ntu.edu.sg/home/ehchua/programming/howto/Environment_Variables.html
    Hope this helps.

    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework