Reputation: 140012
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
Upvotes: 2
Views: 855
Reputation: 88816
-classpath is a : separated list of directories or jar files for Java to look for classes
Each -D is an property that is being set.
java.library.path is the standard location for Java to look for its libraries, such as rt.jar
wrapper.x
are most likely properties for org.tanukisoftware.wrapper.WrapperSimpleApp
These can also be set in Java using System.setProperty("property.name", "value");
org.tanukisoftware.wrapper.WrapperSimpleApp
is the actual java class being run.
com.jobirn.Service
is the first argument to the above class and will show up as args[0]
, assuming the standard public static void main(String[] args)
Upvotes: 1
Reputation: 346417
-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.
Upvotes: 5
Reputation: 1502466
-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 librarieswrapper.*
) looks like it's read by a third party library.Upvotes: 4