> What is interesting is that with this setup it is working fine on one
machine but same does not work for other machine. What is missing here?

Ignite.NET detects Java installation on Windows by checking JAVA_HOME env
var and then the following registry keys:
- Software\JavaSoft\Java Runtime Environment
- Software\Wow6432Node\JavaSoft\Java Runtime Environment

Depending on the way that you install Java, presence of those things may
vary.


> for log files for ignite.net = where can we get detailed logs from ignite
side in this case then
For this case there are no logs by default. JNI_CreateJavaVM happens very
early, and logging system is not fully initialized at this point.
You can still enable debug logging by adding the following code:

Ignition.Start(new IgniteConfiguration { Logger = new ConsoleLogger() });
...
internal class ConsoleLogger : ILogger
{
    public void Log(LogLevel level, string message, object[] args,
IFormatProvider formatProvider, string category,
        string nativeErrorInfo, Exception ex)
    {
        var text = args == null ? message : string.Format(formatProvider,
message, args);

        Console.WriteLine(text);
    }

    public bool IsEnabled(LogLevel level)
    {
        return true;
    }
}



On Mon, Oct 21, 2019 at 3:35 PM Sudhir Patil <[email protected]>
wrote:

> Pavel, Thanks. :)
>
> - for jdk version = Ok we have 1.8 also installed but java_home and path
> variables are set to folder path of 1.7. What is interesting is that with
> this setup it is working fine on one machine but same does not work for
> other machine. What is missing here?
>
> - for log files for ignite.net = where can we get detailed logs from
> ignite side in this case then?? This would be really helpful in such
> situation... Please help on this point.
>
>
> On Monday, October 21, 2019, Pavel Tupitsyn <[email protected]> wrote:
>
>>   >  jdk1.7
>> Please install Java 8 or newer
>>
>> > This is windows environment variable. You can point it to any directory
>> you want.
>> Evgeniy, IGNITE_HOME is not required for Ignite.NET, most users do not
>> use it.
>>
>> On Mon, Oct 21, 2019 at 3:26 PM Evgeniy Rudenko <[email protected]>
>> wrote:
>>
>>> This is windows environment variable. You can point it to any directory
>>> you want.
>>>
>>> On Mon, Oct 21, 2019 at 3:21 PM Sudhir Patil <[email protected]>
>>> wrote:
>>>
>>>> Thanks Evginy. What is Ignite_home directory?
>>>>
>>>> Regards,
>>>> Sudhir
>>>>
>>>> On Monday, October 21, 2019, Evgeniy Rudenko <[email protected]>
>>>> wrote:
>>>>
>>>>> Logs can be found in your ${IGNITE_HOME}\work\log directory.
>>>>>
>>>>> On Mon, Oct 21, 2019 at 2:58 PM Alexandr Shapkin <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hello!
>>>>>>
>>>>>> Please, check that you are using the right JDK version (8+).
>>>>>>
>>>>>> The proper version is set for JAVA_HOME, and you do not use the
>>>>>> JvmDllPath configuration.
>>>>>>
>>>>>> Is it possible that you have multiple Java installations?
>>>>>>
>>>>>>
>>>>>>
>>>>>> *From: *Sudhir Patil <[email protected]>
>>>>>> *Sent: *Monday, October 21, 2019 2:25 PM
>>>>>> *To: *[email protected]
>>>>>> *Subject: *Re: Ignite.Net exception on Ignition.Start
>>>>>>
>>>>>>
>>>>>>
>>>>>> I am using nuget package Apache.Ignite 2.7.5
>>>>>>
>>>>>>
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Sudhir
>>>>>>
>>>>>> On Monday, October 21, 2019, Sudhir Patil <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>>
>>>>>>
>>>>>> I am getting this error when Ignition.Start method is called.
>>>>>> Exception message says - JNI_CreateJavaVM failed: VersionError.
>>>>>>
>>>>>>
>>>>>>
>>>>>> I don't have any log file for this or pleas kelet me know where to
>>>>>> get log file.
>>>>>>
>>>>>> Please help me on this issue.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Sudhir
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thanks & Regards,
>>>>>> Sudhir Patil,
>>>>>> +91 9881095647.
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thanks & Regards,
>>>>>> Sudhir Patil,
>>>>>> +91 9881095647.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best regards,
>>>>> Evgeniy
>>>>>
>>>>
>>>>
>>>> --
>>>> Thanks & Regards,
>>>> Sudhir Patil,
>>>> +91 9881095647.
>>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Evgeniy
>>>
>>
>
> --
> Thanks & Regards,
> Sudhir Patil,
> +91 9881095647.
>

Reply via email to