Determining where jvm.dll is + extensive CPU usage
843829Jan 13 2007 — edited Jan 19 2007Hi,
I am trying to create a JNI wrapper for my java application. I have reached the stage where I can launch the program, providing I have the path to jvm.dll in my path variable.
I was wondering if there was any way to determine this path at runtime, seeming as it is highly unlikely anyone using this program would have it pre-set. I was thinking I could use run a command from within the program to set the path variable temporarily, however how would I determine where their javavm was installed?
Is there no way of shipping the dll with the program?
Also when running my java program through the JNI wrapper it uses about 85 - 90% of my CPU whereas when running it w/o the cpu usage is nominal (about 2 - 10%)
Why is this?