harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Egorov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5659) Support for Windows Vista
Date Thu, 27 Mar 2008 18:03:24 GMT
Support for Windows Vista
-------------------------

                 Key: HARMONY-5659
                 URL: https://issues.apache.org/jira/browse/HARMONY-5659
             Project: Harmony
          Issue Type: Bug
          Components: VM
    Affects Versions: 5.0M6
         Environment: Windows Vista SP1
            Reporter: Dmitry Egorov
             Fix For: 5.0M6
         Attachments: vm_init.patch

When running Harmony under Vista, it shows the following error:

"Windows 6.0 is not supported
HMYEXEL062E Внутренняя ошибка VM: Не удалось создать Java
VM
FAILED to invoke JVM."

The following code from working_vm\vm\vmcore\src\init\vm_init.cpp causes the error_message:
if((osvi.dwMajorVersion == 4 && osvi.dwMinorVersion == 0) ||  // NT 4.0
       (osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 0) ||  // Windows 2000
       (osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 1) ||  // Windows XP
       (osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 2)) { // Windows.NET
            return JNI_OK;
    }
    printf("Windows %d.%d is not supported\n", osvi.dwMajorVersion,
osvi.dwMinorVersion);

It seems to be written before Vista appeared. 
Adding an option for 6.0 version makes Harmony work on Vista, at least on a simple "Hello,
World" app.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message