<div>I am trying to call dll of grass form java using Eclipse</div>
<div>Following is code of java:</div>
<div> </div>
<div><font size="2">
<p align="left"></p></font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">import</font></font></b><font size="2"> com.jinvoke.JInvoke;
<p align="left"></p></font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">import</font></font></b><font size="2"> com.jinvoke.CallingConvention;
<p align="left"></p>
<p align="left"></p></font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">import</font></font></b><font size="2"> com.jinvoke.NativeImport;
<p align="left"></p>
<p align="left"></p></font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">public</font></font></b><font size="2"> </font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">class</font></font></b><font size="2"> create {
<p align="left"></p>
<p align="left"></p></font><font color="#646464" size="2"><font color="#646464" size="2">@NativeImport</font></font><font size="2">(library=</font><font color="#2a00ff" size="2"><font color="#2a00ff" size="2">"C:\\msys\\1.0\\local\\src\\grass-6.3.0\\vector\\v.dllcreate\\v.dllcreate.dll"</font></font><font size="2">,convention=CallingConvention.</font><i><font color="#0000c0" size="2"><font color="#0000c0" size="2">CDECL</font></font></i><font size="2">)
<p align="left"></p></font><font color="#3f7f5f" size="2"><font color="#3f7f5f" size="2">//System.load("C:\\<u>msys</u>\\1.0\\local\\<u>src</u>\\grass-6.3.0\\vector\\v.<u>dllcreate</u>\\v.<u>dllcreate</u>.<u>dll</u>");</font></font><font size="2">
<p align="left"></p></font><font color="#3f7f5f" size="2"><font color="#3f7f5f" size="2">//System.out.<u>println</u>("loaded")</font></font><font size="2">
<p align="left"></p></font><font color="#3f7f5f" size="2"><font color="#3f7f5f" size="2">//System.loadLibrary("C:\\<u>msys</u>\\1.0\\local\\<u>src</u>\\grass-6.3.0\\vector\\v.<u>dllcreate</u>\\v.<u>dllcreate</u>.<u>dll</u>");</font></font><font size="2">
<p align="left"></p></font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">public</font></font></b><font size="2"> </font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">static</font></font></b><font size="2"> </font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">native</font></font></b><font size="2"> </font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">void</font></font></b><font size="2"> funcGUIforCSVcreator(</font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">int</font></font></b><font size="2"> num, String name);
<p align="left"></p></font><font size="2">
<p align="left"></p></font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">public</font></font></b><font size="2"> </font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">static</font></font></b><font size="2"> </font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">void</font></font></b><font size="2"> main(String[] args) {
<p align="left">JInvoke.<i>initialize</i>(); </p>
<p align="left">System.</p></font><i><font color="#0000c0" size="2"><font color="#0000c0" size="2">out</font></font></i><font size="2">.println(</font><font color="#2a00ff" size="2"><font color="#2a00ff" size="2">"Intialize completed"</font></font><font size="2">);
<p align="left"></p>
<p align="left"></p>
<p align="left"><i>funcGUIforCSVcreator</i>(1,</p></font><font color="#2a00ff" size="2"><font color="#2a00ff" size="2">"Dll created for test"</font></font><font size="2">);
<p align="left">System.</p></font><i><font color="#0000c0" size="2"><font color="#0000c0" size="2">out</font></font></i><font size="2">.println(</font><font color="#2a00ff" size="2"><font color="#2a00ff" size="2">"Dll call"</font></font><font size="2">);
<p align="left">}</p>
<p align="left">}</p>
<p align="left"> </p>
<p align="left">Following is the error when we run java code as java application:</p><font size="2">
<p align="left">An unexpected error has been detected by HotSpot Virtual Machine:</p>
<p align="left"># EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77c478c0, pid=7592, tid=9384</p>
<p align="left"># Java VM: Java HotSpot(TM) Client VM (1.5.0_13-b05 mixed mode, sharing)</p>
<p align="left"># Problematic frame:</p>
<p align="left"># C [MSVCRT.dll+0x378c0]</p>
<p align="left"># An error report file with more information is saved as hs_err_pid7592.log</p>
<p align="left"> </p>
<p align="left">Assist me to rectify this error</p></font></font></div>