<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Executei no terminal R CMD javareconf e recebi esta mensagem:</p>
<p>sudo R CMD javareconf<br>
<br>
Java interpreter : /usr/lib/jvm/default-java/bin/java<br>
Java version : 11.0.22<br>
Java home path : /usr/lib/jvm/default-java<br>
Java compiler : /usr/bin/javac<br>
Java headers gen.: <br>
Java archive tool: /usr/bin/jar<br>
<br>
trying to compile and link a JNI program <br>
detected JNI cpp flags : <br>
detected JNI linker flags : -L$(JAVA_HOME)/lib/server -ljvm<br>
using C compiler: ‘gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’<br>
gcc -I"/usr/share/R/include" -DNDEBUG -fpic -g -O2
-ffile-prefix-map=/build/r-base-14Q6vq/r-base-4.3.3=.
-fstack-protector-strong -Wformat -Werror=format-security
-Wdate-time -D_FORTIFY_SOURCE=2 -c conftest.c -o conftest.o<br>
conftest.c:1:10: fatal error: jni.h: Arquivo ou diretório
inexistente<br>
1 | #include <jni.h><br>
| ^~~~~~~<br>
compilation terminated.<br>
make: *** [/usr/lib/R/etc/Makeconf:191: conftest.o] Erro 1<br>
Unable to compile a JNI program<br>
<br>
<br>
JAVA_HOME : /usr/lib/jvm/default-java<br>
Java library path: <br>
JNI cpp flags : <br>
JNI linker flags : <br>
Updating Java configuration in /usr/lib/R<br>
Done.<br>
<br>
</p>
<div class="moz-cite-prefix">Em 19/03/2024 15:35, Márcio Midon
escreveu:<br>
</div>
<blockquote type="cite"
cite="mid:469724bd-4f35-4f65-9c8d-2bf26749e98e@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Boa tarde pessoal,</p>
<p>Estou tentando instalar o pacote r5r no RStudio e recebo esta
mensagem de erro (Uso Ubuntu 22.04x64), como resolvo?Alguma
dica?</p>
<pre tabindex="0" aria-label="Console Output" role="document"
class="GNVWDDMDN3B" id="rstudio_console_output"
style="font-family: "Ubuntu Mono", monospace; font-size: 13.3333px; outline: none; border: none; word-break: break-all; margin: 0px; user-select: text; white-space: pre-wrap !important; line-height: 1.25; color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: -webkit-left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><span
tabindex="-1" class="GNVWDDMDO3B" role="document"
style="outline: none;"><span class="GNVWDDMDH3B ace_constant"
style="color: rgb(197, 6, 11);">configure: error: Java Development Kit (JDK) is missing or not registered in R
Make sure R is configured with full Java support (including JDK). Run
R CMD javareconf
as root to add Java support to R.
If you don't have root privileges, run
R CMD javareconf -e
to set all Java-related variables and then install rJava.
</span><span class="GNVWDDMDH3B ace_constant"
style="color: rgb(197, 6, 11);">ERROR: configuration failed for package ‘rJava’
* removing ‘/home/analista/R/x86_64-pc-linux-gnu-library/4.3/rJava’
</span></span></pre>
</blockquote>
</body>
</html>