Hi, I'm not having any luck getting Calc 2.1 to run on my windows 10 (64-bit) machine. I followed the instructions from the manual (http://www.openforis.org/tools/calc/tutorials/calc-21-user-manual.html). I had previously installed JDK (13.0.2) and Collect (3.25.1) at C:\OpenForis\Collect. This worked and I was able to import data to Collect. I made sure that JRE_HOME and JAVA_HOME both point to the right place and that the Java bin folder is in Windows' Path environment variable. I then installed Postgress and set the appropriate password. I can see via PG_Admin that it's running as expected. I installed R (3.6.2) at c:\opt\R and I installed R-Studio (at "C:\Program Files\RStudio"). I added the required packages through R-Studio (RPostgresSQL and sqldf). I then installed Calc which produced a shortcut on the desktop. I double click the Cal Control Panel shortcut - I get a second of spinning blue icon and then nothing. I get nothing running and can find no logs. (C:\opt\OpenForisCalc\calc-server\tomcat\logs is empty!) How can I go about solving this problem? Have I missed something in the installation? Thanks in advance! /Dave |
Hi Dave, During the process to find out what the problem was, we realized that Calc is incompatible with JDK 1.13. The suggested and tested JDK is 1.8; hopefully this might help other users having the same issue. Thank you, Mino |
Hi Dave, Is postgres installed at the port 5432? when you open Calc control panel, did you click start? Thank you, Mino Hi! Postgres is installed on port 5432. I've tried to launch Calc control panel via both the start menu and the Desktop shortcut. /Dave Hi dave, can you open the console and type java -version ? Please, let me know what the output is. Thank you Mino C:\Users\david>java -version java version "13.0.2" 2020-01-14 Java(TM) SE Runtime Environment (build 13.0.2+8) Java HotSpot(TM) 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing) I have just a doubt: did you have installed the JDK or the JRE? Calc needs the JDK I installed jdk-13.0.2 javac -version gives javac 13.0.2 so JDK is installed properly. Can you also type in the console echo %CALC_HOME% and echo %JAVA_HOME% ? C:\opt\OpenForisCalc and C:\Program Files\Java\jdk-13.0.2 can you type in the console: cd %CALC_HOME%/calc-server/server/tomcat/bin (then press enter) then type catalina.bat run can you check if the server starts correctly? If it does, can you open chrome at the page http://localhost:8081 ? That's not possible, my calc-server has no server folder. This is what works: cd %CALC_HOME%/calc-server/tomcat/bin Running the bat file, I get an error: Using CATALINA_BASE: "C:\opt\OpenForisCalc\calc-server\tomcat" Using CATALINA_HOME: "C:\opt\OpenForisCalc\calc-server\tomcat" Using CATALINA_TMPDIR: "C:\opt\OpenForisCalc\calc-server\tomcat\temp" Using JRE_HOME: "C:\Program Files\Java\jdk-13.0.2" Using CLASSPATH: "C:\opt\OpenForisCalc\calc-server\tomcat\bin\bootstrap.jar;C:\opt\OpenForisCalc\calc-server\tomcat\bin\tomcat-juli.jar" Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0 -Djava.endorsed.dirs=C:\opt\OpenForisCalc\calc-server\tomcat\endorsed is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Yes, sorry the correct path is without server I cannot see what causes the program to exit. Is that all you see in the console? Yes - the only error messages are the last two lines: Error: Could not create the Java Virtual Machine. Thank you Dave. Tomorrow we'll try to install Calc on Win10 with JDK 13 and will get back to you. Mino Hi Dave, It looks like Calc is incompatible with JDK 1.13. Can you uninstall it and install JDK 1.8? Thanks, Mino I installed a JDK from: https://jdk.java.net/java-se-ri/8 I still get no proper response from the Open Foris Calc control panel, but running "catalina.bat run" seems to start the server ok - even if I've not got data into Calc yet. Is that the right JDK? update: I actually tried calc-server\startup.cmd which opened a tomcat window. As I say, I'm still struggling with the data. But if that's the right JDK I can keep working and start a new question if I get stuck there. Yes JDK 1.8 is the right one. Make sure JAVA_HOME is pointing to the JDK 1.8 Not sure what you mean by struggling with the data; you need to import collect data first hope this helps. Thank you Mino I've got the data in now. I'm still going through the manual and I'd missed that I needed to create a workspace before importing the data. Thanks for your help. If you want to write an answer saying that JDK 1.13 is incompatible then I'lll accept it.
showing 5 of 18
show 13 more comments
|