Linux users - Installing JDK

Bruce's Avatar

Bruce

14 Aug, 2019 10:39 PM

Offline Caltopo and SARtopo run on Java JDK.
JDK is available to linux users, and here's what I did to install that on Linux Mint 19. If you're not running that flavor of linux, there are plenty of instructions around, but the commands and sequence is almost identical.

I am running Linux Mint 19.1
First thing to do is see if you have JDK to begin with. If not you will need an account with sudo privileges to run the commands
Open terminal and enter the following:

java -version.

I got the following response

Error: Could not find or load main class version
Caused by: java.lang.ClassNotFoundException: version

Means: I did not have Java.

To install, update the package manager:

sudo apt update

It will ask for your sudo password enter that.
After it updates enter the following command to install DefaultOpenJDK on linux mint 19:

sudo apt install default-jdk

this will take a couple of minutes. When its ready it will note additional packages that will be installed. in my case the output was:

The following additional packages will be installed:
  default-jdk-headless openjdk-11-jdk openjdk-11-jdk-headless
Suggested packages:
  openjdk-11-demo openjdk-11-source visualvm
Recommended packages:
  libxt-dev
The following NEW packages will be installed:
  default-jdk default-jdk-headless openjdk-11-jdk openjdk-11-jdk-headless
0 upgraded, 4 newly installed, 0 to remove and 20 not upgraded.
Need to get 193 MB of archives.
After this operation, 203 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

Enter Y to continue.

The packages will be installed. it will also take a couple of minutes.

When it's complete you will be back to your command prompt.
To confirm the installation enter the following:

java -version

Output should be (or something similar)

openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)

Java is now installed, both the runtime environment, and the Server (in my case 64bit since I have a 64bit system). It's the JDK Server that runs Cal/SarTopo Offline.

The reason my output mentions
 "build 11.04+11-post-Ubuntu-1ubuntu218.04.3"
is that Linux Mint is based on Ubuntu. Depending on your linux distribution, your output will mention whatever distribution you are using.
Once you've downloaded the offlline app, follow instructions on other posts on how to get it to run. Evidently it runs on JDK for Windows, Mac, and Linux as well once JDK is installed.

  1. System closed this discussion on 02 Oct, 2019 04:25 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac