Package com.sun.akuma

Class JavaVMArguments

All Implemented Interfaces:
Serializable, Cloneable, Iterable<String>, Collection<String>, List<String>, RandomAccess, SequencedCollection<String>

public class JavaVMArguments extends ArrayList<String>
List of arguments for Java VM and application.
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

    • JavaVMArguments

      public JavaVMArguments()
    • JavaVMArguments

      public JavaVMArguments(Collection<? extends String> c)
  • Method Details

    • removeSystemProperty

      public void removeSystemProperty(String name)
    • setSystemProperty

      public void setSystemProperty(String name, String value)
    • removeTail

      public void removeTail(int n)
      Removes the n items from the end. Useful for removing all the Java arguments to rebuild them.
    • current

      public static JavaVMArguments current() throws IOException
      Gets the process argument list of the current process.
      Throws:
      IOException
    • of

      public static JavaVMArguments of(int pid) throws IOException
      Gets the process argument list of the specified process ID.
      Parameters:
      pid - -1 to indicate the current process.
      Throws:
      IOException
    • main

      public static void main(String[] args) throws IOException
      Throws:
      IOException