Monthly Archives: August 2013

how to mount/share network drives

To copy files from Linux to Windows.
Use software called WinSCP and log in to the machine with appropriate credentials.


How to customize default Tomcat port

By default Apache Tomcat listens on port 8080 but we might want to change this port:

  1. Find your Apache Tomcat installation folder
  2. Navigate to conf folder
  3. Open server.xml file
  4. Find the following lines:
    <Connector port="8080" protocol="HTTP/1.1"
    redirectPort="8443" />
  5. Change the connector port according to your preferences. In my case to port 80
    <Connector port="80" protocol="HTTP/1.1"
    redirectPort="8443" />
  6. Save the file and exit
  7. Restart your server and you are ready to go

How to configure Java variables in Windows XP

To set Java variables in Windows XP:

  1. Open properties of My Computer
  2. Go to the Advanced tab
  3. Click Environment Variables button
  4. Under System variables click New button
  5. and set the following:
    Variable name: JAVA_HOME
    Variable value: C:\Program Files\Java\jre7
  6. Click OK button and create the next variable as following:Variable name: JRE_HOME
    Variable value: C:\Program Files\Java\jre7
  7. Confirm the dialog and close the windows by clicking OK button
  8. Re-open command prompt and check if works
  9. If not, log off and re-login