﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-Rising Sun -随笔分类-环境设置</title><link>http://www.blogjava.net/brock/category/42178.html</link><description /><language>zh-cn</language><lastBuildDate>Sun, 11 Aug 2013 05:58:08 GMT</lastBuildDate><pubDate>Sun, 11 Aug 2013 05:58:08 GMT</pubDate><ttl>60</ttl><item><title>java 注册到 windows 服务</title><link>http://www.blogjava.net/brock/archive/2013/08/09/402627.html</link><dc:creator>brock</dc:creator><author>brock</author><pubDate>Fri, 09 Aug 2013 06:20:00 GMT</pubDate><guid>http://www.blogjava.net/brock/archive/2013/08/09/402627.html</guid><wfw:comment>http://www.blogjava.net/brock/comments/402627.html</wfw:comment><comments>http://www.blogjava.net/brock/archive/2013/08/09/402627.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/brock/comments/commentRss/402627.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/brock/services/trackbacks/402627.html</trackback:ping><description><![CDATA[<div>#encoding=UTF-8</div><div># Configuration files must begin with a line specifying the encoding</div><div># &nbsp;of the the file.</div><div></div><div>#********************************************************************</div><div># Wrapper License Properties (Ignored by Community Edition)</div><div>#********************************************************************</div><div># Professional and Standard Editions of the Wrapper require a valid</div><div># &nbsp;License Key to start. &nbsp;Licenses can be purchased or a trial license</div><div># &nbsp;requested on the following pages:</div><div># http://wrapper.tanukisoftware.com/purchase</div><div># http://wrapper.tanukisoftware.com/trial</div><div></div><div># Include file problems can be debugged by removing the first '#'</div><div># &nbsp;from the following line:</div><div>##include.debug</div><div></div><div># The Wrapper will look for either of the following optional files for a</div><div># &nbsp;valid License Key. &nbsp;License Key properties can optionally be included</div><div># &nbsp;directly in this configuration file.</div><div>#include ../conf/wrapper-license.conf</div><div>#include ../conf/wrapper-license-%WRAPPER_HOST_NAME%.conf</div><div></div><div># The following property will output information about which License Key(s)</div><div># &nbsp;are being found, and can aid in resolving any licensing problems.</div><div>#wrapper.license.debug=TRUE</div><div></div><div>#********************************************************************</div><div># Wrapper Localization</div><div>#********************************************************************</div><div># Specify the locale which the Wrapper should use. &nbsp;By default the system</div><div># &nbsp;locale is used.</div><div>#wrapper.lang=en_US # en_US or ja_JP</div><div></div><div># Specify the location of the Wrapper's language resources. &nbsp;If these are</div><div># &nbsp;missing, the Wrapper will default to the en_US locale.</div><div>wrapper.lang.folder=../lang</div><div></div><div>#********************************************************************</div><div># Wrapper Java Properties</div><div>#********************************************************************</div><div># Java Application</div><div># &nbsp;Locate the java binary on the system PATH:</div><div>wrapper.java.command=java</div><div># &nbsp;Specify a specific java binary:</div><div>#set.JAVA_HOME=/java/path</div><div>set.LIB=D:/MonitorApp/lib</div><div>#wrapper.java.command=%JAVA_HOME%/bin/java</div><div></div><div># Tell the Wrapper to log the full generated Java command line.</div><div>#wrapper.java.command.loglevel=INFO</div><div></div><div># Java Main class. &nbsp;This class must implement the WrapperListener interface</div><div># &nbsp;or guarantee that the WrapperManager class is initialized. &nbsp;Helper</div><div># &nbsp;classes are provided to do this for you. &nbsp;See the Integration section</div><div># &nbsp;of the documentation for details.</div><div>wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp</div><div></div><div># Java Classpath (include wrapper.jar) &nbsp;Add class path elements as</div><div># &nbsp;needed starting from 1</div><div></div><div>echo %LIB%</div><div></div><div>wrapper.java.classpath.1=%LIB%/wrapper.jar</div><div>wrapper.java.classpath.2=%LIB%/commons-beanutils-1.8.3.jar</div><div>wrapper.java.classpath.3=%LIB%/commons-codec-1.4.jar</div><div>wrapper.java.classpath.4=%LIB%/commons-collections-3.1.jar</div><div>wrapper.java.classpath.5=%LIB%/commons-collections-3.2.1.jar</div><div>wrapper.java.classpath.6=%LIB%/commons-dbcp-1.3.jar</div><div>wrapper.java.classpath.7=%LIB%/commons-dbcp-1.4.jar</div><div>wrapper.java.classpath.8=%LIB%/commons-fileupload-1.2.1.jar</div><div>wrapper.java.classpath.9=%LIB%/commons-httpclient-3.0.1.jar</div><div>wrapper.java.classpath.10=%LIB%/commons-io-1.4.jar</div><div>wrapper.java.classpath.11=%LIB%/commons-io-2.0.1.jar</div><div>wrapper.java.classpath.12=%LIB%/commons-jexl-1.1.jar</div><div>wrapper.java.classpath.13=%LIB%/commons-lang-2.5.jar</div><div>wrapper.java.classpath.14=%LIB%/commons-logging-1.1.1.jar</div><div>wrapper.java.classpath.15=%LIB%/commons-logging-api-1.1.jar</div><div>wrapper.java.classpath.16=%LIB%/commons-management-1.0.jar</div><div>wrapper.java.classpath.17=%LIB%/commons-pool-1.5.4.jar</div><div>wrapper.java.classpath.18=%LIB%/jedis-2.0.0.jar</div><div>wrapper.java.classpath.19=%LIB%/log4j-1.2.14.jar</div><div>wrapper.java.classpath.20=%LIB%/quartz-all-1.6.3.jar</div><div>wrapper.java.classpath.21=%LIB%/spring-aop-3.0.2.RELEASE.jar</div><div>wrapper.java.classpath.22=%LIB%/spring-asm-3.0.2.RELEASE.jar</div><div>wrapper.java.classpath.23=%LIB%/spring-beans-3.0.2.RELEASE.jar</div><div>wrapper.java.classpath.24=%LIB%/spring-binding-2.0.8.RELEASE.jar</div><div>wrapper.java.classpath.25=%LIB%/spring-context-3.0.2.RELEASE.jar</div><div>wrapper.java.classpath.26=%LIB%/spring-context-support-3.0.2.RELEASE.jar</div><div>wrapper.java.classpath.27=%LIB%/spring-core-3.0.2.RELEASE.jar</div><div>wrapper.java.classpath.28=%LIB%/spring-expression-3.0.2.RELEASE.jar</div><div>wrapper.java.classpath.29=%LIB%/springside-3.3.2.jar</div><div>wrapper.java.classpath.30=%LIB%/spring-test-3.0.2.RELEASE.jar</div><div>wrapper.java.classpath.31=%LIB%/spring-tx-3.0.2.RELEASE.jar</div><div>wrapper.java.classpath.32=%LIB%/slf4j-api-1.5.8.jar</div><div>wrapper.java.classpath.33=%LIB%/slf4j-log4j12-1.5.8.jar</div><div>wrapper.java.classpath.34=%LIB%/monitor.jar<br /></div><div><span style="color: red; ">wrapper.java.classpath.35=%LIB% &nbsp; #可以读到这里的文件 xml pro 等 &nbsp; &nbsp; &nbsp;&nbsp;</span></div><div></div><div># Java Library Path (location of Wrapper.DLL or libwrapper.so)</div><div>wrapper.java.library.path.1=../bin</div><div></div><div># Java Bits. &nbsp;On applicable platforms, tells the JVM to run in 32 or 64-bit mode.</div><div>wrapper.java.additional.auto_bits=TRUE</div><div></div><div># Java Additional Parameters</div><div>wrapper.java.additional.1=-Dlog4j.configuration=file:%LIB%/log4j.xml</div><div>wrapper.java.additional.2=-Dorg.tanukisoftware.wrapper.WrapperManager.mbean=TRUE</div><div></div><div># Initial Java Heap Size (in MB)</div><div>wrapper.java.initmemory=128</div><div></div><div># Maximum Java Heap Size (in MB)</div><div>wrapper.java.maxmemory=512</div><div></div><div># Application parameters. &nbsp;Add parameters as needed starting from 1</div><div>wrapper.app.parameter.1=com.zjasm.tomcat.TomcatStat</div><div></div><div>#********************************************************************</div><div># Wrapper Logging Properties</div><div>#********************************************************************</div><div># Enables Debug output from the Wrapper.</div><div>#wrapper.debug=TRUE</div><div></div><div># Format of output for the console. &nbsp;(See docs for formats)</div><div>wrapper.console.format=PM</div><div></div><div># Log Level for console output. &nbsp;(See docs for log levels)</div><div>wrapper.console.loglevel=INFO</div><div></div><div># Log file to use for wrapper output logging.</div><div>wrapper.logfile=../logs/wrapper.log</div><div></div><div># Format of output for the log file. &nbsp;(See docs for formats)</div><div>wrapper.logfile.format=LPTM</div><div></div><div># Log Level for log file output. &nbsp;(See docs for log levels)</div><div>wrapper.logfile.loglevel=INFO</div><div></div><div># Maximum size that the log file will be allowed to grow to before</div><div># &nbsp;the log is rolled. Size is specified in bytes. &nbsp;The default value</div><div># &nbsp;of 0, disables log rolling. &nbsp;May abbreviate with the 'k' (kb) or</div><div># &nbsp;'m' (mb) suffix. &nbsp;For example: 10m = 10 megabytes.</div><div>wrapper.logfile.maxsize=0</div><div></div><div># Maximum number of rolled log files which will be allowed before old</div><div># &nbsp;files are deleted. &nbsp;The default value of 0 implies no limit.</div><div>wrapper.logfile.maxfiles=0</div><div></div><div># Log Level for sys/event log output. &nbsp;(See docs for log levels)</div><div>wrapper.syslog.loglevel=NONE</div><div></div><div>#********************************************************************</div><div># Wrapper General Properties</div><div>#********************************************************************</div><div># Allow for the use of non-contiguous numbered properties</div><div>wrapper.ignore_sequence_gaps=TRUE</div><div></div><div># Do not start if the pid file already exists.</div><div>wrapper.pidfile.strict=TRUE</div><div></div><div># Title to use when running as a console</div><div>wrapper.console.title=Test Wrapper Sample Application</div><div></div><div>#********************************************************************</div><div># Wrapper JVM Checks</div><div>#********************************************************************</div><div># Detect DeadLocked Threads in the JVM. (Requires Standard Edition)</div><div>wrapper.check.deadlock=TRUE</div><div>wrapper.check.deadlock.interval=10</div><div>wrapper.check.deadlock.action=RESTART</div><div>wrapper.check.deadlock.output=FULL</div><div></div><div># Out Of Memory detection.</div><div># (Ignore output from dumping the configuration to the console. &nbsp;This is only needed by the TestWrapper sample application.)</div><div>wrapper.filter.trigger.999=wrapper.filter.trigger.*java.lang.OutOfMemoryError</div><div>wrapper.filter.allow_wildcards.999=TRUE</div><div>wrapper.filter.action.999=NONE</div><div># &nbsp;Ignore -verbose:class output to avoid false positives.</div><div>wrapper.filter.trigger.1000=[Loaded java.lang.OutOfMemoryError</div><div>wrapper.filter.action.1000=NONE</div><div># (Simple match)</div><div>wrapper.filter.trigger.1001=java.lang.OutOfMemoryError</div><div># (Only match text in stack traces if -XX:+PrintClassHistogram is being used.)</div><div>#wrapper.filter.trigger.1001=Exception in thread "*" java.lang.OutOfMemoryError</div><div>#wrapper.filter.allow_wildcards.1001=TRUE</div><div>wrapper.filter.action.1001=RESTART</div><div>wrapper.filter.message.1001=The JVM has run out of memory.</div><div></div><div>#********************************************************************</div><div># Wrapper Email Notifications. (Requires Professional Edition)</div><div>#********************************************************************</div><div># Common Event Email settings.</div><div>#wrapper.event.default.email.debug=TRUE</div><div>#wrapper.event.default.email.smtp.host=&lt;SMTP_Host&gt;</div><div>#wrapper.event.default.email.smtp.port=25</div><div>#wrapper.event.default.email.subject=[%WRAPPER_HOSTNAME%:%WRAPPER_NAME%:%WRAPPER_EVENT_NAME%] Event Notification</div><div>#wrapper.event.default.email.sender=&lt;Sender email&gt;</div><div>#wrapper.event.default.email.recipient=&lt;Recipient email&gt;</div><div></div><div># Configure the log attached to event emails.</div><div>#wrapper.event.default.email.attach_log=TRUE</div><div>#wrapper.event.default.email.maillog.lines=50</div><div>#wrapper.event.default.email.maillog.format=LPTM</div><div>#wrapper.event.default.email.maillog.loglevel=INFO</div><div></div><div># Enable specific event emails.</div><div>#wrapper.event.wrapper_start.email=TRUE</div><div>#wrapper.event.jvm_prelaunch.email=TRUE</div><div>#wrapper.event.jvm_start.email=TRUE</div><div>#wrapper.event.jvm_started.email=TRUE</div><div>#wrapper.event.jvm_deadlock.email=TRUE</div><div>#wrapper.event.jvm_stop.email=TRUE</div><div>#wrapper.event.jvm_stopped.email=TRUE</div><div>#wrapper.event.jvm_restart.email=TRUE</div><div>#wrapper.event.jvm_failed_invocation.email=TRUE</div><div>#wrapper.event.jvm_max_failed_invocations.email=TRUE</div><div>#wrapper.event.jvm_kill.email=TRUE</div><div>#wrapper.event.jvm_killed.email=TRUE</div><div>#wrapper.event.jvm_unexpected_exit.email=TRUE</div><div>#wrapper.event.wrapper_stop.email=TRUE</div><div></div><div># Specify custom mail content</div><div>wrapper.event.jvm_restart.email.body=The JVM was restarted.\n\nPlease check on its status.\n</div><div></div><div>#********************************************************************</div><div># Wrapper Windows NT/2000/XP Service Properties</div><div>#********************************************************************</div><div># WARNING - Do not modify any of these properties when an application</div><div># &nbsp;using this configuration file has been installed as a service.</div><div># &nbsp;Please uninstall the service before modifying this section. &nbsp;The</div><div># &nbsp;service can then be reinstalled.</div><div></div><div># Name of the service</div><div>wrapper.name=testwrapper</div><div></div><div># Display name of the service</div><div>wrapper.displayname=Test Wrapper Sample Application</div><div></div><div># Description of the service</div><div>wrapper.description=Test Wrapper Sample Application Description</div><div></div><div># Service dependencies. &nbsp;Add dependencies as needed starting from 1</div><div>wrapper.ntservice.dependency.1=</div><div></div><div># Mode in which the service is installed. &nbsp;AUTO_START, DELAY_START or DEMAND_START</div><div>wrapper.ntservice.starttype=AUTO_START</div><div></div><div># Allow the service to interact with the desktop.</div><div>wrapper.ntservice.interactive=false</div><div></div><img src ="http://www.blogjava.net/brock/aggbug/402627.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/brock/" target="_blank">brock</a> 2013-08-09 14:20 <a href="http://www.blogjava.net/brock/archive/2013/08/09/402627.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>jdk环境变量</title><link>http://www.blogjava.net/brock/archive/2009/10/15/298316.html</link><dc:creator>brock</dc:creator><author>brock</author><pubDate>Thu, 15 Oct 2009 01:36:00 GMT</pubDate><guid>http://www.blogjava.net/brock/archive/2009/10/15/298316.html</guid><wfw:comment>http://www.blogjava.net/brock/comments/298316.html</wfw:comment><comments>http://www.blogjava.net/brock/archive/2009/10/15/298316.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/brock/comments/commentRss/298316.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/brock/services/trackbacks/298316.html</trackback:ping><description><![CDATA[<p>JAVA_HOME=C:\j2sdk1.4.2_04<br />
CLASSPATH=.;C:\j2sdk1.4.2_04\lib\tools.jar;C:\j2sdk1.4.2_04\lib\dt.jar;C:\j2sdk1.4.2_04</p>
<p>\bin;<br />
path=C:\j2sdk1.4.2_04\bin;</p>
 <img src ="http://www.blogjava.net/brock/aggbug/298316.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/brock/" target="_blank">brock</a> 2009-10-15 09:36 <a href="http://www.blogjava.net/brock/archive/2009/10/15/298316.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>