java - how to get the running executable jar name using c/c++ code? -


i want name of running executable jar file using c/c++ code.

what did do?

generate dynamic library c++ code contain the code current executable name.

created wrapper file , generated .so(dynamic library linux) interface java, using swig.

the created so loaded in java file return name of executable.

what happened:

it returns name of java runtime executable file,/usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/java

what need:

i need name of running executable jar file, in code written in c/c++.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -