---
title: "Deployment of Calc on Ubuntu Server"
url: "https://openforis.support/questions/404/deployment-of-calc-on-ubuntu-server"
tags: ["calc"]
status: "closed"
score: 0
answer_count: 1
asked: "2015-11-30T18:29:06"
last_activity: "2015-12-14T13:24:22"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Deployment of Calc on Ubuntu Server

Asked by pmagdon on 2015-11-30

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


## Answer (score 0, by pmagdon on 2015-12-02)

Link: https://openforis.support/questions/404/deployment-of-calc-on-ubuntu-server/405

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
