[R] Problem with SJava sample "JavaRCall"
Heinz Grimm
grimm.heinz at rcc.ch
Thu Sep 5 14:59:43 CEST 2002
Heinz Grimm wrote:
>Hi,
>I am trying to run the example "JavaRCall" with SJava 0.65 and R1.5.1
>under Windows NT4.0. Although loadLibrary("RInterpreter") worked successfull,
>the following error occurs:
>"Exception breakpoint occurred at line 65 of ROmegahatInterpreter.java.
>Ajava.lang.UnsatisfiedLinkError: boolean
>org.omegahat.R.Java.ROmegahatInterpreter.initR(java.lang.String[])
Meanwhile I have learned a lot about JNI and have fixed this one. I have added
'-Wl,--add-stdcall-alias' (see e.g. http://www.inonit.com/cygwin/jni/helloWorld/c.html)
to the gcc command that creates the library SJava.DLL
Unfortuantely I get now a new error (appended). Can anybody help?
Thank you,
Heinz Grimm
D:\JDev9i\jdev\mywork\R\JavaCallR\classes>java rcc.rTest.JavaCallR
Loading RInterpreter library
[search]
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x8f3f3aa
Function name=R_SetMaxNSize
Library=d:\r-project\R-1.5.1\bin\R.dll
Current Java thread:
at org.omegahat.R.Java.REvaluator.eval(Native Method)
at org.omegahat.R.Java.REvaluator.eval(REvaluator.java:86)
at org.omegahat.R.Java.REvaluator.eval(REvaluator.java:36)
at rcc.rTest.JavaCallR.main(JavaCallR.java:20)
Dynamic libraries:
0x00400000 - 0x00405000 D:\jdk1.3.1_01\jre\bin\java.exe
0x77F70000 - 0x77FD0000 C:\WINNT\System32\ntdll.dll
0x77DC0000 - 0x77DFF000 C:\WINNT\system32\ADVAPI32.dll
0x77F00000 - 0x77F63000 C:\WINNT\system32\KERNEL32.dll
0x77E70000 - 0x77EC5000 C:\WINNT\system32\USER32.dll
0x77ED0000 - 0x77EFC000 C:\WINNT\system32\GDI32.dll
0x77E10000 - 0x77E67000 C:\WINNT\system32\RPCRT4.dll
0x78000000 - 0x78044000 C:\WINNT\system32\MSVCRT.dll
0x6D420000 - 0x6D4EE000 D:\jdk1.3.1_01\jre\bin\hotspot\jvm.dll
0x77FD0000 - 0x77FFB000 C:\WINNT\System32\WINMM.dll
0x6D220000 - 0x6D227000 D:\jdk1.3.1_01\jre\bin\hpi.dll
0x6D3B0000 - 0x6D3BD000 D:\jdk1.3.1_01\jre\bin\verify.dll
0x6D250000 - 0x6D266000 D:\jdk1.3.1_01\jre\bin\java.dll
0x6D3C0000 - 0x6D3CD000 D:\jdk1.3.1_01\jre\bin\zip.dll
0x08E90000 - 0x08EA5000 D:\r-project\R-1.5.1\library\SJava\libs\RInterpr
eter.dll
0x08EB0000 - 0x09069000 d:\r-project\R-1.5.1\bin\R.dll
0x09070000 - 0x0908B000 d:\r-project\R-1.5.1\bin\Rblas.dll
0x716F0000 - 0x7177A000 C:\WINNT\system32\COMCTL32.DLL
0x77D80000 - 0x77DB3000 C:\WINNT\system32\COMDLG32.DLL
0x77C40000 - 0x77D7F000 C:\WINNT\system32\SHELL32.dll
0x52180000 - 0x5218B000 C:\WINNT\system32\VERSION.dll
0x779B0000 - 0x779B8000 C:\WINNT\system32\LZ32.dll
0x090A0000 - 0x090B5000 D:\r-project\R-1.5.1\library\SJava\libs\SJava.dl
l
0x76AE0000 - 0x76AFD000 C:\WINNT\System32\imagehlp.dll
0x71DC0000 - 0x71DCA000 C:\WINNT\System32\PSAPI.DLL
Local Time = Thu Sep 05 14:45:12 2002
Elapsed Time = 1
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1_01 mixed mode)
#
#
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grimm.heinz.vcf
Type: text/x-vcard
Size: 291 bytes
Desc: Card for Heinz Grimm
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20020905/7f9f052a/grimm.heinz.vcf
More information about the R-help
mailing list