[R] rJava install - "%1 is not a valid Win32 application."

Simon Knapp sleepingwell at gmail.com
Tue Oct 16 01:12:18 CEST 2012


My guess would be that your running the 32 bit version of R - and
rJava is looking for the 64 bit dll. I'd suggest starting the 64 bit
version of R explicitly (e.g. the 64 bit version of Rgui lives at
<R_HOME>/bin/x64/Rgui.exe, whereas the 32 bit version lives at
<R_HOME>/bin/i386/Rgui.exe).

On Tue, Oct 16, 2012 at 2:37 AM, Steven Ranney <steven.ranney at gmail.com> wrote:
> All –
>
>
>
> I’m having a problem with the rJava package.  I can download it to my
> machine (Win 7 64-bit) but when I try to load the package into R (2.15.1,
> 64-bit version), I get the following error:
>
>
>> require(rJava)
>
> Loading required 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
> 'C:/Users/sranney/Documents/R/win-library/2.15/rJava/libs/x64/rJava.dll':
>
>   LoadLibrary failure:  %1 is not a valid Win32 application.
>
>
> I have verified that the file R is looking for is in the appropriate place,
> but I continue to get the error.  I have tried to download rJava from
> another source, but still get the error.
>
>
> I have not been able to find another user with this same issue.
>
>
> Thanks for your help –
>
>
> Steven Ranney
>
>         [[alternative HTML version deleted]]
>
>
> ______________________________________________
> 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.
>




More information about the R-help mailing list