linux配置java文件

 cat  /cpcnet/products/services/mc-revamp/scripts/mgtdata_collector/synchronize_inms_site_incident_to_mcdb.sh
export JAVA_HOME=/home/cpcnet/jre1.7.0_75
export PATH=$PATH:$JAVA_HOME/bin


### set the default language of cron
export LANG=en_US.UTF-8


### generate file in local machine folder
program_home=/cpcnet/products/services/mc-revamp
cd $program_home/bin


lib=$program_home/lib


java -classpath .:$lib/JDBC_Driver/mssqlserver/msutil.jar:$lib/JDBC_Driver/mssqlserver/mssqlserver.jar:$lib/JDBC_Driver/mssqlserver/msbase.jar:$lib/JDBC_Driver/mssqlserver/jtds-1.2.jar:$lib/JDBC_Driver/mssqlserver/sqljdbc2005.jar:$lib/JDBC_Driver/oracle/ojdbc14_g.jar:$lib/JDBC_Driver/mysql/mysql-connector-java-5.1.7-bin.jar:$lib/mail/mailapi.jar:$lib/mail/mail.jar:$lib/mail/activation.jar:$lib/log4j/commons-logging-1.1.1.jar:$lib/log4j/log4j-1.2.15.jar com.mc.mgtdata_collector.synchronization.inms_site_incident_synchronization 
[cpcnet@hkhkgalc08nm ~]$ cd /home/cpcnet/jre1.7.0_75
[cpcnet@hkhkgalc08nm jre1.7.0_75]$ ls -l
total 316

你可能感兴趣的:(linux配置java文件)