Pages

Thursday, January 26, 2012

Java dev tools and installations

Tomcat Appache installation
  1.  Install Tomcat apache from http://tomcat.apache.org/download-60.cgi
  2. Add Env variables
    1. CATALINA_HOME = C:\apache-tomcat-6.0.35   Mandatory
    2. JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_30
    3. JRE_Home=C:\Program Files (x86)\Java\jre6
    4.  
      add this section 
       
      C:\apache-tomcat-6.0.35\conf\tomcat-users.xml

       

      so you can access manager area



      Running Java class from Jar file 

      java -classpath MyFirstProject.jar clic.det.nsw.samples.sample1.MyFirstClass

      No comments:

      Post a Comment