知识大全 Java如何设置ClassPath路径

Posted 路径

篇首语:人不能象走兽那样活着,应该追求知识和美德。本文由小常识网(cha138.com)小编为大家整理,主要介绍了知识大全 Java如何设置ClassPath路径相关的知识,希望对你有一定的参考价值。

Java如何设置ClassPath路径  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!

  因为有很多汉字需要编码所以选择gbk

  ============================================================================

  URIEncoding= GBK

  /etc/profile

  =============================================================================

  export PATH

  export JAVA_HOME=/usr/lib/jvm/java sun

  export CLASSPATH= :$JAVA_HOME/lib/dt jar:$JAVA_HOME/lib/tools jar:$JAVA_HOME/lib/mysql connector java bin jar

  umask

  export APACHE_RUN_USER= data

  export APACHE_RUN_GROUP= data

  export APACHE_PID_FILE=/var/run/apache pid

  server xml

  ==============================================================================

  <Host name= ** appBase= /opt/sites

  unpackWARs= true autoDeploy= true

  xmlValidation= false xmlNamespaceAware= false >

  <Alias>**</Alias>

  <Context path= / docBase= ** workDir= /opt/sites/**/work

  debug= reloadable= true crossContext= true >

  </Context>

  </Host>

  sites enabled

  =================================================================================

  <VirtlHost *: >

  ServerName **

  ServerAlias * ** **

  ServerAdmin webmaster@localhost

  DocumentRoot /opt/sites/**

  <Directory /opt/sites/**>

  Options Indexes FollowSymLinks MultiViews

  AllowOverride None

  Order allow deny

  allow from all

  </Directory>

  ScriptAlias /cgi bin/ /usr/lib/cgi bin/

  <Directory /usr/lib/cgi bin >

  AllowOverride None

  Options +ExecCGI MultiViews +SymLinksIfOwnerMatch

  Order allow deny

  Allow from all

  </Directory>

  ErrorLog /var/log/apache /*** access error log

  # Possible values include: debug info notice warn error crit

  # alert emerg

  LogLevel warn

  CustomLog /var/log/apache /*** access log bined

  Alias /doc/ /usr/share/doc/

  <Directory /usr/share/doc/ >

  Options Indexes MultiViews FollowSymLinks

  AllowOverride None

  Order deny allow

  Deny from all

  Allow from / :: /

  </Directory>

  #       Alias /examples /usr/share/tomcat examples/examples/

  #       <Directory /usr/share/tomcat examples/examples/ >

  #       Options Indexes MultiViews FollowSymLinks

  #       AllowOverride None

  #       Order deny allow

  #       Allow from all

  #       </Directory>

  #       #禁止访问WEB INF文件夹

  #       <Directory /usr/share/tomcat examples/examples/WEB INF >

  #       Order allow deny

  #       </Directory>

  JkMount /* jsp ajp _worker

  JkMount /* jspx ajp _worker

  JkMount /*/servlet/* ajp _worker

  JKMount /* do ajp _worker

  </VirtualHost>

  =================================================================================

  # Sample mod_jk configuration

  # for Apache

  #

  # for all mands/options available see the manual

  # provided in libapache mod jk doc package

  # The location where mod_jk will find the workers definitions

  JkWorkersFile   /etc/libapache mod jk/workers properties

  # The location where mod_jk is going to place its log file

  JkLogFile       /var/log/apache /mod_jk log

  # The log level:

  # info log will contain standard mod_jk activity (default)

  # warn log will contain non fatal error reports

  # error log will contain also error reports

  # debug log will contain all information on mod_jk activity

  # trace log will contain all tracing information on mod_jk activity

  JkLogLevel      info

  # Assign specific URLs to Tomcat In general the structure of a

  # JkMount directive is: JkMount [URL prefix] [Worker name]

  # send all requests ending in jsp to ajp _worker

  JkMount /* jsp ajp _worker

  # send all requests ending /servlet to ajp _worker

  JkMount /*/servlet/ ajp _worker

  # JkUnmount directive acts as an opposite to JkMount and blocks access

  # to a particular URL The purpose is to be able to filter out the

  # particular content types from mounted context

  # do not send requests ending with gif to ajp _worker

  #JkUnMount /servlet/* gif ajp _worker

  # JkMount / JkUnMount directives can also be used inside <VirtualHost>

  # sections of your file

  =================================================================================

  workers properties

  #Defining a worker named worker and of type ajp

  worker list=worker

  # Set properties for worker

  worker worker type=ajp

  worker worker host=localhost

  worker worker port=

  worker worker lbfactor=

  worker worker cachesize=

  worker worker cache_timeout=

  worker worker socket_keepalive=

  worker worker socket_timeout=

cha138/Article/program/Java/hx/201311/26600

相关参考

知识大全 JAVA编程解析之classpath的深入理解

JAVA编程解析之classpath的深入理解  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  现

知识大全 classpath的理解

  jvm的类加载分三中方式  系统级别rtjar  扩展级别java_home/jre/lib/ext/目录下的jar文件  应用级别环境变量中的classpath或javac  

知识大全 tomcat5.0下配置ssl

使用java版本 设置环境变量 PATH=/usr/jsdk/bin JAVA_HOME=/usr/jsdk/ CLASSPATH=/usr/jsdk/lib/

知识大全 JAVA获取绝对路径的问题

JAVA获取绝对路径的问题  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  JAVA中获取绝对路径

知识大全 Java相对路径读取文件

Java相对路径读取文件  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  不管你是新手还是老鸟在程

知识大全 JAVA 物理路径上传附件功能

JAVA物理路径上传附件功能  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  publicActi

知识大全 Java对话框获取目录、文件路径

Java对话框获取目录、文件路径  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  publicFi

知识大全 JAVA WEB开发中路径问题的总结

JAVAWEB开发中路径问题的总结  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  用Java开发

知识大全 在JAVA文件中获取该项目的相对路径

在JAVA文件中获取该项目的相对路径  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! &n

知识大全 Java采用相对路径连接access数据库

Java采用相对路径连接access数据库  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!  二话不