Dear all,

after successful installation of Collect on our Ubuntu Server we are now struggling with Calc. We setup the tomcat server and installed all relevant R packages (incl. rJava). When we access the page our.server:8080/calc we can see the page but it freezes immediately. However it is not starting. The log files catalina.out show a problem with the JRI path: "Cannot find JRI native library!". The JRI library is installed under /usr/local/lib/R/site-library/rJava/jri. However, I am not sure where to set this environmental variabl as there are so many different files in ../tomcat7/bin. Should we specify the path in setenv.sh?? or later in catalina.sh ...? Any suggestions welcome.

Greetings Paul

asked 30 Nov '15, 18:29

pmagdon's gravatar image

pmagdon
214813
accept rate: 0%

closed 14 Dec '15, 13:24

Mino%20Togna's gravatar image

Mino Togna ♦♦
52116

The question has been closed for the following reason "Question is off-topic or not relevant" by Mino Togna 14 Dec '15, 13:24


Ok, I found the solution: The path to the jri library need to be speciefed in the .../tomcat7/bin/setenv.sh file:

export JAVA_OPTS="-Xms256m -Xmx1024m -XX:MaxPermSize=256m -Dfile.encoding=UTF-8 -Djava.library.path=/usr/local/lib/R/site-library/rJava/jri/"

Regards Paul

permanent link

answered 02 Dec '15, 09:59

pmagdon's gravatar image

pmagdon
214813
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×83

question asked: 30 Nov '15, 18:29

question was seen: 3,900 times

last updated: 14 Dec '15, 13:24