osgi - How can I get command line arguments from java equinox bundle? -



osgi - How can I get command line arguments from java equinox bundle? -

i've equinox application , want eventual command line parameters user can use. how can these parameters?

the list of possible arguments listed in eclipselauncher class constants. if want, can constants of class reflection. scheme property names prefixed "prop_". might work 1 version, not other. not recommend this.

you can scheme properties via system.getproperties() (i guess trivial).

if want if arguments have been passed in oracle based jvm sun.java.command scheme property. not work other jvm implementations.

non of options above suggested utilize in production :). interested in use-case want implement getting these arguments programmatically.

java osgi

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -