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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -