Can't start Calc 2.1 on Windows 10

  • Asked
  • Active
  • Viewed 5433 times
0

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

2

Accepted answer

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

0

Accepted answer

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

UmeaDave UmeaDave

Hi dave,

can you open the console and type java -version ?

Please, let me know what the output is.

Thank you Mino

Mino Togna Mino Togna ♦♦

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)

UmeaDave UmeaDave

I have just a doubt: did you have installed the JDK or the JRE? Calc needs the JDK

Mino Togna Mino Togna ♦♦

I installed jdk-13.0.2

javac -version gives javac 13.0.2 so JDK is installed properly.

UmeaDave UmeaDave

Can you also type in the console

echo %CALC_HOME%

and

echo %JAVA_HOME%

?

Mino Togna Mino Togna ♦♦

C:\opt\OpenForisCalc

and

C:\Program Files\Java\jdk-13.0.2

UmeaDave UmeaDave

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 ?

Mino Togna Mino Togna ♦♦

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"

UmeaDave UmeaDave

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.

UmeaDave UmeaDave

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?

Mino Togna Mino Togna ♦♦

Yes - the only error messages are the last two lines:

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

UmeaDave UmeaDave

Thank you Dave.

Tomorrow we'll try to install Calc on Win10 with JDK 13 and will get back to you.

Mino

Mino Togna Mino Togna ♦♦

Hi Dave,

It looks like Calc is incompatible with JDK 1.13. Can you uninstall it and install JDK 1.8?

Thanks,

Mino

Mino Togna Mino Togna ♦♦

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?

UmeaDave UmeaDave

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.

UmeaDave UmeaDave

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

Mino Togna Mino Togna ♦♦

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.

UmeaDave UmeaDave
showing 5 of 18 show 13 more comments

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.