Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleHow to set environment variables for Java or Ant in the system?
  1. Open System Properties. (My Computer > Properties)
  2. In the Advanced tab, click Environment Variables.

    Advanced settings in System Properties

  3. In the User variables for section of Environment Variables dialog box, click New to create new variables. Ensure you create new variables for Java, Ant, Oracle as shown in the following screenshot:

    Environment Variables dialog box

  4. Edit the path variable and map the environment variables of Java and Ant as shown in the following screenshot. Ensure that the variables are mapped to the folder that contains the installed files of Java, Oracle, and Ant.

    Setting the Environment Variables

  5. Click OK.
  6. Click OK on the Environment Variables dialog box.
  7. To check if the environment variables are set correctly, at the command prompt check the version of Java installed on your system by entering the following command:

    Code Block
    languagebash
    java –version


    If the environment variables are set correctly, the version of Java installed on your system is displayed.

    Java version in Command Prompt


Expand
titleHow to start/stop Tomcat server manually without using Eclipse?
  1. To start the Tomcat server, double-click the startup.bat file in the Tomcat folder (e.g. ‘D:\Canvas\apache-tomcat-7.0.67\bin’).
  2. To stop the Tomcat server, press CTRL + C in the command prompt.