[R] netlogo r-extension loadlibrary() failures

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Aug 28 10:17:01 CEST 2013


This is not an R question, and you have not provided the 'at a minimum 
information' the posting guide asked of you.

But this seems to be Windows, and

 >    LoadLibrary failure:  The specified module could not be found.

is a Windows error message.  You seem to misunderstand what it means: 
check your OS documentation.  (It is not referring to rJava.dll.)

[That is Microsoft, whose messages are infamously accurate but maximally 
uninformative.]

On 28/08/2013 07:38, Mike Landis wrote:
> Trying to access R from Netlogo5 (using the NetLogo R-Extension),

Whatever that is ....  If you run your checks in R, you will most likely 
see more comprehensive diagnostics.

> 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?
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list