Java, tomcat, ant, perl configuration environment variable

  If you want to in any directory called directly, will have to configure the corresponding environment variable. 

  Below that few simple configuration environment variable: 

1.java:

  Download jdk, after installation or unpack. 

  Set environment variables: 

  JAVA_HOME = C: \ jdk1.5.0_03 
  PATH =% JAVA_HOME% / bin /;% PATH% 
  CLASSPATH =.;% JAVA_HOME% / lib / dt.jar;% JAVA_HOME% / lib / tools.jar 

  Under linux configuration 
  . Bashrc file 

  Set JAVA_HOME = / usr/java/j2sdk1.4.2_05 
  Export JAVA_HOME 
  $ JAVA_HOME set PATH = / bin /: $ PATH 
  Export PATH 
  Set CLASSPATH =.: $ JAVA_HOME / lib / dt.jar: $ JAVA_HOME / lib / tools.jar 
  Export CLASSPATH 
————————————————

  2.tomcat variable settings.    (If no had no relations) 

  TOMCAT_HOME = C: \ Tomcat 5.0 

  CLASSPATH =.% TOMCAT_HOME% \ BIN 

  3.ant if not set environment variables are not in any directory called directly, directly call the question is: 'ant' is not an internal or external command 
  Settings: 
  1>. ANT_HOME installed at the installation directory ant 
  2>. Will ANT_HOME%% \ bin;% ANT_HOME% \ lib added to the environment variables in the path 

  4.perl windows in the environment variable settings 

  My perl exist D: \ perl, the setting is as follows 

  PERL5LIB found, in which add: 

  D: \ Perl \ lib; D: \ Perl \ site; D: \ Perl \ site \ lib; 

  On the OK 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Tags: , , ,

Releated Java Articles

Comments

Leave a Reply