Reconstruction of java command line arguments
Posted
by notnoop
on Stack Overflow
See other posts from Stack Overflow
or by notnoop
Published on 2010-06-09T19:11:32Z
Indexed on
2010/06/09
19:52 UTC
Read the original article
Hit count: 180
Is there a way to reconstruct the command line arguments passed to Java within a Java program, including the JVM options and classpath option?
I have a Java program that needs to restart the JVM and manipulate its bootclasspath (i.e. trying to override some system classes). I use the libc
system
method to invoke the new JVM.
I'm open for better approaches, but Java agents isn't an option.
© Stack Overflow or respective owner