Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Determining where jvm.dll is + extensive CPU usage

843829Jan 13 2007 — edited Jan 19 2007
Hi,
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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 16 2007
Added on Jan 13 2007
10 comments
499 views