Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does each of these options mean?

Tags:

java

java -Djava.library.path=../lib 
     -classpath ../lib/wrappertest.jar:../lib/wrapper.jar:Service.jar:../lib/mysql-connector-java-3.0.17-ga-bin.jar 
     -Dwrapper.key=Ksxtsmvr7iAmVJ-T 
     -Dwrapper.port=32001 
     -Dwrapper.jvm.port.min=31000 
     -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=1731 
     -Dwrapper.version=3.3.0 
     -Dwrapper.native_library=wrapper 
     -Dwrapper.service=TRUE 
     -Dwrapper.cpu.timeout=10 
     -Dwrapper.jvmid=1 
           org.tanukisoftware.wrapper.WrapperSimpleApp com.jobirn.Service
like image 561
omg Avatar asked Nov 22 '25 21:11

omg


2 Answers

-classpath sets the class path for the JVM, i.e. the path where it will look for classes. The others (starting with -D ) all set System properties. Of these, java.library.path sets the path where the JVM will look for native libraries. The other system properties are used to configure the Java Service Wrapper product.

like image 113
Michael Borgwardt Avatar answered Nov 25 '25 12:11

Michael Borgwardt


-classpath tells the VM how to find classes

-Dx=y sets the system property x to value y; the exact effect depends on the property:

  • java.library.path is used to find native libraries
  • The rest (wrapper.*) looks like it's read by a third party library.
like image 24
Jon Skeet Avatar answered Nov 25 '25 12:11

Jon Skeet