[R] netlogo r-extension loadlibrary() failures

Mike Landis mlandis at pnmx.com
Wed Aug 28 08:38:14 CEST 2013


Trying to access R from Netlogo5 (using the NetLogo R-Extension), 
running the configuration validation tests in 
NetLogo5/extensions/r/Systemcheck.nlogo, I get several loadlibrary() 
errors ...

in rJava Check2,
 > library(rJava); .path.package('rJava')
Error : .onLoad failed in loadNamespace() for 'rJava', details:
   call: inDL(x, as.logical(local), as.logical(now), ...)
   error: unable to load shared object 
'D:/Programs/R/R-3.0.1/library/rJava/libs/x64/rJava.dll':
   LoadLibrary failure:  The specified module could not be found.
[ though that is in fact where the rJava.dll is located ]
----------------
in the JavaGD Check,
 > library(JavaGD); .path.package('JavaGD')
Error : .onLoad failed in loadNamespace() for 'JavaGD', details:
   call: inDL(x, as.logical(local), as.logical(now), ...)
   error: unable to load shared object 
'D:/Programs/R/R-3.0.1/library/JavaGD/libs/x64/JavaGD.dll':
   LoadLibrary failure:  The specified module could not be found.
[ the exact location of the JavaGD.dll ]
----------------
In the Check R test, I get...
java.lang.UnsatisfiedLinkError: no R in java.library.path
  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1878)
  at java.lang.Runtime.loadLibrary0(Runtime.java:849)
  at java.lang.System.loadLibrary(System.java:1087)
  at org.nlogo.extension.r.systemcheck.Entry$RCheck.perform(Entry.java:208)
  at org.nlogo.prim._extern.perform(_extern.java:54)
  at org.nlogo.nvm.Context.stepConcurrent(Context.java:91)
  at org.nlogo.nvm.ConcurrentJob.step(ConcurrentJob.java:82)
  at 
org.nlogo.job.JobThread.org$nlogo$job$JobThread$$runPrimaryJobs(JobThread.scala:143)
  at org.nlogo.job.JobThread$$anonfun$run$1.apply$mcV$sp(JobThread.scala:78)
  at org.nlogo.job.JobThread$$anonfun$run$1.apply(JobThread.scala:76)
  at org.nlogo.job.JobThread$$anonfun$run$1.apply(JobThread.scala:76)
  at scala.util.control.Exception$Catch.apply(Exception.scala:88)
  at org.nlogo.util.Exceptions$.handling(Exceptions.scala:41)
  at org.nlogo.job.JobThread.run(JobThread.scala:75)

NetLogo 5.0
main: org.nlogo.app.AppFrame
thread: AWT-EventQueue-0
Java HotSpot(TM) 64-Bit Server VM 1.7.0_25 (Oracle Corporation; 
1.7.0_25-b16)
operating system: Windows 7 6.1 (amd64 processor)
Scala version 2.9.1.final
JOGL: (3D View not initialized)
OpenGL Graphics: (3D View not initialized)
model: Systemcheck

11:29:31.892 AddJobEvent (org.nlogo.window.ButtonWidget) AWT-EventQueue-0
11:29:31.784 InputBoxLoseFocusEvent (org.nlogo.window.ButtonWidget) 
AWT-EventQueue-0
11:29:31.757 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 
(org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0
11:29:31.557 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 
(org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0
11:29:31.357 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 
(org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0
11:29:31.157 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 
(org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0
11:29:30.957 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 
(org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0
11:29:30.757 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 
(org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0
11:29:30.557 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 
(org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0
11:29:30.345 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 
(org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0
[ though $PATH includes %R_HOME%\bin\x64\ where there is an r.dll ]
----------------
All three are loadlibrary() errors, where the target is located exactly 
where it can't be loaded from.  What can I do to fix that?



More information about the R-help mailing list