I tried to read through the whole jvmti documentation and I didn't find a solution for my problem.
I want to get the name of the class/file that is used in the command line to call the program:
java -agentpath:<pathToAgent> <calledJavaProgram>
In upper case I want to get the name of < calledJavaProgram >.
GetSourceFileName(jclass klass,...) gets me only the name of the "klass", that is set in the parameterlist, but since I started the program I even don't know this one ... right?
Are there (other) ways to get this name?
Thx for your help Markus G.