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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Detect VM from windows

843811Jul 17 2003 — edited Jul 21 2003
There must be an easier was to detect the current VM in windows then searching through directories.

I have got a C++ program that i want to use to launch my java application, but i want it to be able to detect the version of the current vm before it simply calls 'java ...' command.

calling 'java -version' does not work very well because i am having difficult redirecting output away from the console (I don't want anything to show, just a simple version check then if it's current, launch the application).

If anyone has any ideas how this can be done i would greatly appreciate it.

Thank you.

Jarvis
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 18 2003
Added on Jul 17 2003
2 comments
174 views