How do I get the string that was passed to the com...
# getting-started
s
How do I get the string that was passed to the command line to start my JVM program?
s
I am looking for a string like
java -Xmx128M Da=b -jar MyJar.jar -Db=c
I would consider the information user provided/tainted, I think user could do BIA and replace the string after passing it to java, but before your program sees it
v
What do you actually need it for? You can e. g. also use
JAVA_TOOL_OPTIONS
to inject additional JVM arguments, or have a wrapper executable and so on.