CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2010
    Posts
    2

    Question Virtual machine description value is empty

    Hi,

    A Swing applet is opened in a internet explorer 7 on Windows7 64 bit machine. When i am opening application on IE7 "64bit" and querying virtual machine list by invoking VirtualMachine.list(), i am able to find the "display name" of VirtualMachineDescriptor as "sun.plugin2.main.client.PluginMain" but the same function calling is returning an empty string of display name with IE 32bit. Any help is highly appreciated.

  2. #2
    Join Date
    Oct 2010
    Posts
    15

    Re: Virtual machine description value is empty

    Maybe it's me just being ignorant but I looked up JDI and VirtualMachine interface has no list() method. What interface are you using? My guess is that whatever it is, there just isn't a 32bit VirtualMachine available -- it's either not installed or just isn't accessible from the context your program is running in, which isn't surprising given that you said it's a 64 bit machine.

  3. #3
    Join Date
    Oct 2010
    Posts
    2

    Re: Virtual machine description value is empty

    After googling alot i atlast found the solution to my problem. It is the com.sun.tools.attach.VirtualMachine on which i am invoking list(), and the displayName() of VirtualMachineDescriptor is being shown from jre 1.6 update 18 onwards. Earlier i had jre update 13,so it was showing empty string but after installing new jre update 18, its showing properly. Thanks for replying to my post.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured