At startup pass this -Dname=value
and then in your code you should use
value=System.getProperty("name");
to get that value
More Related Contents:
- Difference between _JAVA_OPTIONS, JAVA_TOOL_OPTIONS and JAVA_OPTS
- Java stack overflow error – how to increase the stack size in Eclipse?
- What does JVM flag CMSClassUnloadingEnabled actually do?
- Debug a java application without starting the JVM with debug arguments
- Increasing the JVM maximum heap size for memory intensive applications
- What does -XX:MaxPermSize do?
- “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G
- What is the largest possible heap size with a 64-bit JVM?
- Java Exceptions counter on JVM HotSpot
- Encourage the JVM to GC rather than grow the heap?
- How can I disable IPv6 stack use for IPv4 IPs on JRE?
- Java heap Xms and linux free memory different
- Duplicated Java runtime options : what is the order of preference?
- What is the difference between JDK_JAVA_OPTIONS and JAVA_TOOL_OPTIONS when using Java 11?
- PermGen elimination in JDK 8
- Difference between thread’s context class loader and normal classloader
- What is the replacement for javax.activation package in java 9?
- GC overhead limit exceeded
- limiting java ssl debug logging
- Memory effects of synchronization in Java
- What makes hot deployment a “hard problem”?
- Why have one JVM per application?
- Why doesn’t the JVM cache JIT compiled code?
- What are bytecodes and how does the JVM handle them
- Why a sawtooth shaped graph?
- Java for-loop optimization
- Is it good to set the max and min JVM heap size the same?
- Which real-time (RTSJ) JVM is most preferred? [closed]
- Measuring time spent on GC
- Release java memory for OS at runtime