Java installation in Mint 19.3 (Solved)

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Wompoo
Level 6
Level 6
Posts: 1116
Joined: Sat Dec 28, 2013 2:42 am

Java installation in Mint 19.3 (Solved)

Post by Wompoo »

I am trying to install Java in my Linux Mint 19.3 operating system.
I am planning on utilising the software offered on this site: http://www.mh-aerotools.de/airfoils/jav ... ain_en.htm
So far, I have tried the following three options and set of directions without success:

1. https://linuxhint.com/install_java_linux_mint/

2. https://community.linuxmint.com/tutorial/view/1372

3. I opened the Software Manager in my operating system. The results are confusing to me to proceed with any installations until I receive advice.

I will begin with the terminal results from directions in step #1 above.

Code: Select all

jim@jim-LinuxMint-ASUS:~$ java - version
JVMJ9VM007E Command-line option unrecognised: -
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
jim@jim-LinuxMint-ASUS:~$ sudo apt update
[sudo] password for jim:                         
Ign:1 http://mirror.internode.on.net/pub/linuxmint-packages tricia InRelease   
Hit:2 http://mirror.internode.on.net/pub/linuxmint-packages tricia Release     
Hit:4 http://archive.canonical.com/ubuntu bionic InRelease                     
Hit:5 http://security.ubuntu.com/ubuntu bionic-security InRelease              
Hit:6 http://archive.ubuntu.com/ubuntu bionic InRelease                        
Hit:7 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic InRelease      
Get:8 http://dl.google.com/linux/earth/deb stable InRelease [1,807 B]          
Err:8 http://dl.google.com/linux/earth/deb stable InRelease                    
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
Hit:9 https://linux.teamviewer.com/deb stable InRelease                        
Hit:10 http://archive.ubuntu.com/ubuntu bionic-updates InRelease               
Hit:11 https://updates.signal.org/desktop/apt xenial InRelease                 
Hit:12 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu bionic InRelease
Get:13 https://repo.skype.com/deb stable InRelease [4,502 B]              
Err:13 https://repo.skype.com/deb stable InRelease                             
  The following signatures were invalid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <se-um@microsoft.com>
Hit:14 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done 
W: GPG error: http://dl.google.com/linux/earth/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
E: The repository 'http://dl.google.com/linux/earth/deb stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.skype.com/deb stable InRelease: The following signatures were invalid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <se-um@microsoft.com>
jim@jim-LinuxMint-ASUS:~$ sudo apt install default-jdk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
default-jdk is already the newest version (2:1.11-68ubuntu1~18.04.1).
The following packages were automatically installed and are no longer required:
  eclipse-jdt eclipse-pde eclipse-platform eclipse-platform-data eclipse-rcp fastjar jarwrapper libasm3-java libcommons-dbcp-java libcommons-httpclient-java libcommons-pool-java libdb-java libdb-je-java libdb5.3-java libdb5.3-java-jni
  libeasymock-java libecj-java libfelix-bundlerepository-java libfelix-gogo-command-java libfelix-gogo-shell-java libfelix-shell-java libfelix-utils-java libicu4j-4.2-java libicu4j-49-java libjavascriptcoregtk-1.0-0 libjetty9-java
  libjline-java libjtidy-java liblucene2-java libobjenesis-java libswt-cairo-gtk-3-jni libswt-glx-gtk-3-jni libswt-gtk-3-java libswt-gtk-3-jni libswt-webkit-gtk-3-jni libtomcat8-java libwebkitgtk-1.0-0 linux-headers-5.4.0-89-generic
  linux-hwe-5.4-headers-5.4.0-89 linux-image-5.4.0-89-generic linux-modules-5.4.0-89-generic linux-modules-extra-5.4.0-89-generic sat4j
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
jim@jim-LinuxMint-ASUS:~$ sudo apt install default-jr
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package default-jr
jim@jim-LinuxMint-ASUS:~$ 
Can someone assist me with this please?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Desktop PC #1
Linux Mint 20.3 MATE desktop (64-bit), Asus
ASUSTeK model: P5G41T-M LX, 8 Gb RAM
User avatar
spamegg
Level 14
Level 14
Posts: 5013
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: Java installation in Mint 19.3

Post by spamegg »

I believe Mint comes with OpenJDK 11 pre-installed, doesn't it? Because LibreOffice requires Java, I think?

Try

Code: Select all

java --version
If it's really missing, you can

Code: Select all

apt install openjdk-11-jre openjdk-11-jdk
I was able to download the javapipe.jar file from the site you linked, and it works fine:
javapipe.png
To be honest, that site looks very old and outdated (it says last updated 2018 but that doesn't really reflect its state). Using Java applets in a browser is not really a thing any more, modern browsers abandoned it a long time ago for security concerns. Last time I saw that was before 2010.
Wompoo
Level 6
Level 6
Posts: 1116
Joined: Sat Dec 28, 2013 2:42 am

Re: Java installation in Mint 19.3

Post by Wompoo »

Thanks for the reply with suggestions spamegg.

I ran the terminal command. This is the result:

Code: Select all

jim@jim-LinuxMint-ASUS:~$ java --version
JVMJ9VM007E Command-line option unrecognised: --version
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
jim@jim-LinuxMint-ASUS:~$ 
Then when I ran the second command, it indicated JDK / JRE is already installed. (I think that is what is indicated?).

Code: Select all

jim@jim-LinuxMint-ASUS:~$ java --version
JVMJ9VM007E Command-line option unrecognised: --version
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
jim@jim-LinuxMint-ASUS:~$ apt install openjdk-11-jre openjdk-11-jdk
[sudo] password for jim:         
Reading package lists... Done
Building dependency tree       
Reading state information... Done
openjdk-11-jdk is already the newest version (11.0.11+9-0ubuntu2~18.04).
openjdk-11-jdk set to manually installed.
openjdk-11-jre is already the newest version (11.0.11+9-0ubuntu2~18.04).
The following packages were automatically installed and are no longer required:
  eclipse-jdt eclipse-pde eclipse-platform eclipse-platform-data eclipse-rcp
  fastjar jarwrapper libasm3-java libcommons-dbcp-java
  libcommons-httpclient-java libcommons-pool-java libdb-java libdb-je-java
  libdb5.3-java libdb5.3-java-jni libeasymock-java libecj-java
  libfelix-bundlerepository-java libfelix-gogo-command-java
  libfelix-gogo-shell-java libfelix-shell-java libfelix-utils-java
  libicu4j-4.2-java libicu4j-49-java libjavascriptcoregtk-1.0-0 libjetty9-java
  libjline-java libjtidy-java liblucene2-java libobjenesis-java
  libswt-cairo-gtk-3-jni libswt-glx-gtk-3-jni libswt-gtk-3-java
  libswt-gtk-3-jni libswt-webkit-gtk-3-jni libtomcat8-java libwebkitgtk-1.0-0
  linux-headers-5.4.0-89-generic linux-hwe-5.4-headers-5.4.0-89
  linux-image-5.4.0-89-generic linux-modules-5.4.0-89-generic
  linux-modules-extra-5.4.0-89-generic sat4j
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
jim@jim-LinuxMint-ASUS:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  eclipse-jdt eclipse-pde eclipse-platform eclipse-platform-data eclipse-rcp
  fastjar jarwrapper libasm3-java libcommons-dbcp-java
  libcommons-httpclient-java libcommons-pool-java libdb-java libdb-je-java
  libdb5.3-java libdb5.3-java-jni libeasymock-java libecj-java
  libfelix-bundlerepository-java libfelix-gogo-command-java
  libfelix-gogo-shell-java libfelix-shell-java libfelix-utils-java
  libicu4j-4.2-java libicu4j-49-java libjavascriptcoregtk-1.0-0 libjetty9-java
  libjline-java libjtidy-java liblucene2-java libobjenesis-java
  libswt-cairo-gtk-3-jni libswt-glx-gtk-3-jni libswt-gtk-3-java
  libswt-gtk-3-jni libswt-webkit-gtk-3-jni libtomcat8-java libwebkitgtk-1.0-0
  linux-headers-5.4.0-89-generic linux-hwe-5.4-headers-5.4.0-89
  linux-image-5.4.0-89-generic linux-modules-5.4.0-89-generic
  linux-modules-extra-5.4.0-89-generic sat4j
0 to upgrade, 0 to newly install, 43 to remove and 0 not to upgrade.
After this operation, 603 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 529763 files and directories currently installed.)
Removing eclipse-pde (3.8.1-11) ...
Removing eclipse-jdt (3.8.1-11) ...
Removing eclipse-platform (3.8.1-11) ...
Removing eclipse-platform-data (3.8.1-11) ...
Removing eclipse-rcp (3.8.1-11) ...
Removing sat4j (2.3.5-0.2) ...
Removing jarwrapper (0.72.1~18.04.1) ...
Removing fastjar (2:0.98-6build1) ...
Removing libasm3-java (3.3.2-3) ...
Removing libcommons-dbcp-java (1.4-5ubuntu2) ...
Removing libcommons-httpclient-java (3.1-15~18.04) ...
Removing libcommons-pool-java (1.6-3) ...
Removing libdb-java (1:5.3.21~exp1ubuntu2) ...
Removing libdb-je-java (3.3.98-2) ...
Removing libdb5.3-java (5.3.28-13.1ubuntu1.1) ...
Removing libdb5.3-java-jni:amd64 (5.3.28-13.1ubuntu1.1) ...
Removing libfelix-gogo-command-java (0.14.0-2) ...
Removing libfelix-bundlerepository-java (2.0.10-3) ...
Removing libeasymock-java (3.6-1) ...
Removing libtomcat8-java (8.5.39-1ubuntu1~18.04.3) ...
Removing libecj-java (3.16.0-1~18.04) ...
Removing libfelix-gogo-shell-java (0.12.0-1) ...
Removing libfelix-shell-java (1.4.3-2) ...
Removing libfelix-utils-java (1.8.6-1) ...
Removing libicu4j-4.2-java (4.2.1.1-6fakesync) ...
Removing libicu4j-49-java (49.1-3) ...
Removing libswt-webkit-gtk-3-jni (3.8.2-5) ...
Removing libwebkitgtk-1.0-0:amd64 (2.4.11-3ubuntu3) ...
Removing libjavascriptcoregtk-1.0-0:amd64 (2.4.11-3ubuntu3) ...
Removing libjetty9-java (9.4.15-1~18.04.1ubuntu1) ...
Removing libjline-java (1.0-2) ...
Removing libjtidy-java (7+svn20110807-5) ...
Removing liblucene2-java (2.9.4+ds1-6) ...
Removing libobjenesis-java (3.0.1-2~18.04) ...
Removing libswt-cairo-gtk-3-jni (3.8.2-5) ...
Removing libswt-glx-gtk-3-jni (3.8.2-5) ...
Removing libswt-gtk-3-java (3.8.2-5) ...
Removing libswt-gtk-3-jni (3.8.2-5) ...
Removing linux-headers-5.4.0-89-generic (5.4.0-89.100~18.04.1) ...
Removing linux-hwe-5.4-headers-5.4.0-89 (5.4.0-89.100~18.04.1) ...
Removing linux-modules-extra-5.4.0-89-generic (5.4.0-89.100~18.04.1) ...
Removing linux-image-5.4.0-89-generic (5.4.0-89.100~18.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-89-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/60_mint-theme.cfg'
Generating grub configuration file ...
Found theme: /boot/grub/themes/linuxmint/theme.txt
Found linux image: /boot/vmlinuz-5.4.0-91-generic
Found initrd image: /boot/initrd.img-5.4.0-91-generic
Found linux image: /boot/vmlinuz-5.4.0-90-generic
Found initrd image: /boot/initrd.img-5.4.0-90-generic
Found linux image: /boot/vmlinuz-5.0.0-32-generic
Found initrd image: /boot/initrd.img-5.0.0-32-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
Removing linux-modules-5.4.0-89-generic (5.4.0-89.100~18.04.1) ...
Processing triggers for desktop-file-utils (0.23+linuxmint8) ...
Processing triggers for install-info (6.5.0.dfsg.1-2) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
jim@jim-LinuxMint-ASUS:~$ 
Your last comment makes me wonder if I should proceed. However, the fact that you downloaded it encourages me to do so.

Jim.
Desktop PC #1
Linux Mint 20.3 MATE desktop (64-bit), Asus
ASUSTeK model: P5G41T-M LX, 8 Gb RAM
User avatar
spamegg
Level 14
Level 14
Posts: 5013
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: Java installation in Mint 19.3

Post by spamegg »

I get the same issue with the java - version command:

Code: Select all

 ➜ java - version
Unrecognized option: -
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I think that's just a typo in the command!

But java --version works (java -version also works):

Code: Select all

 ➜ java --version
openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)

 ➜ java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)
OK, it looks like Java was indeed installed on your PC as I was thinking.

I'm not sure why it's giving those errors. Let's try to set the JAVA_HOME environment variable first. Can you show the output of

Code: Select all

echo $JAVA_HOME
If the output shows nothing, do this:

Code: Select all

export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
java --version
and see if it makes a difference.

It looks like you tried to install quite a lot of things, and some of your additional repositories have some signature issues. Best to start with some standard commands:

Code: Select all

apt autoremove
apt update
apt upgrade
dave0808
Level 5
Level 5
Posts: 984
Joined: Sat May 16, 2015 1:02 pm

Re: Java installation in Mint 19.3

Post by dave0808 »

Wompoo wrote: Sat Dec 04, 2021 10:37 pm So far, I have tried the following three options and set of directions without success:
1. https://linuxhint.com/install_java_linux_mint/

Code: Select all

jim@jim-LinuxMint-ASUS:~$ java - version
JVMJ9VM007E Command-line option unrecognised: -
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

jim@jim-LinuxMint-ASUS:~$ sudo apt install default-jdk
default-jdk is already the newest version (2:1.11-68ubuntu1~18.04.1).

jim@jim-LinuxMint-ASUS:~$ sudo apt install default-jr
E: Unable to locate package default-jr
Can someone assist me with this please?
I've trimmed your original post to the pertinent parts. I also went and looked at the website that you included. Unfortunately, there are errors on the website to start with, and then you did not type a later command as shown within the website. This lead to multiple errors which will have certainly been confusing.

The web-site said to run the following command

Code: Select all

java –version
However, they used the wrong dash character (a UTF-8 character: "0xE2 0x80 0x93"), so it was never going to work by copying and pasting. Unfortunately you also inserted a space between the dash and the "version" string, so that wasn't going to work either as that provides 2 arguments, rather than the one that was required...

Code: Select all

# Invalid dash character...
$ java –version
Error: Could not find or load main class –version
Caused by: java.lang.ClassNotFoundException: –version

# Space after dash, creating 2 command line arguments...
$ java - version
Unrecognized option: -
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

# Correct ASCII dash (0x2d) and no space...
$ java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)
Later you ran sudo apt install default-jr but missed the letter 'e' from the end. It should have been sudo apt install default-jre.

Note that the JDK package is used for developing Java programs. The JRE package is use for those simply wanting to run Java programs. So you should not need the JDK, though it may have been installed by default. You first input shows that it is installed.

The fact that you're getting a response from the JVM when typing in java --version means that it is on your PATH. So please try with just one single ASCII dash character, or simply copy and paste the following:-

Code: Select all

java -version
Wompoo
Level 6
Level 6
Posts: 1116
Joined: Sat Dec 28, 2013 2:42 am

Re: Java installation in Mint 19.3

Post by Wompoo »

spamegg wrote: Sun Dec 05, 2021 2:49 am I get the same issue with the java - version command:

Code: Select all

 ➜ java - version
Unrecognized option: -
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I think that's just a typo in the command!

But java --version works (java -version also works):

Code: Select all

 ➜ java --version
openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)

 ➜ java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)
OK, it looks like Java was indeed installed on your PC as I was thinking.

I'm not sure why it's giving those errors. Let's try to set the JAVA_HOME environment variable first. Can you show the output of

Code: Select all

echo $JAVA_HOME
If the output shows nothing, do this:

Code: Select all

export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
java --version
and see if it makes a difference.

It looks like you tried to install quite a lot of things, and some of your additional repositories have some signature issues. Best to start with some standard commands:

Code: Select all

apt autoremove
apt update
apt upgrade
Ok, I have done all the above. The result is here:

Code: Select all

jim@jim-LinuxMint-ASUS:~$ echo $JAVA_HOME

jim@jim-LinuxMint-ASUS:~$ export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
jim@jim-LinuxMint-ASUS:~$ export PATH=$JAVA_HOME/bin:$PATH
jim@jim-LinuxMint-ASUS:~$ java --version
openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.18.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.18.04, mixed mode, sharing)
jim@jim-LinuxMint-ASUS:~$ apt autoremove
[sudo] password for jim:         
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
jim@jim-LinuxMint-ASUS:~$ apt update
Ign:1 http://mirror.internode.on.net/pub/linuxmint-packages tricia InRelease
Get:2 http://dl.google.com/linux/earth/deb stable InRelease [1,807 B]
Err:2 http://dl.google.com/linux/earth/deb stable InRelease        
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:4 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic InRelease
Hit:5 http://archive.canonical.com/ubuntu bionic InRelease         
Hit:6 http://mirror.internode.on.net/pub/linuxmint-packages tricia Release
Hit:8 https://linux.teamviewer.com/deb stable InRelease            
Hit:9 http://archive.ubuntu.com/ubuntu bionic InRelease            
Hit:10 https://updates.signal.org/desktop/apt xenial InRelease     
Hit:11 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu bionic InRelease
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [50.3 kB]
Get:14 https://repo.skype.com/deb stable InRelease [4,502 B]       
Err:14 https://repo.skype.com/deb stable InRelease                 
  The following signatures were invalid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <se-um@microsoft.com>
Get:15 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [59.0 kB]
Get:16 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [293 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [300 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:21 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [9,268 B]
Reading package lists... Done                                      
W: GPG error: http://dl.google.com/linux/earth/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
E: The repository 'http://dl.google.com/linux/earth/deb stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.skype.com/deb stable InRelease: The following signatures were invalid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <se-um@microsoft.com>
jim@jim-LinuxMint-ASUS:~$ apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
jim@jim-LinuxMint-ASUS:~$ 
Desktop PC #1
Linux Mint 20.3 MATE desktop (64-bit), Asus
ASUSTeK model: P5G41T-M LX, 8 Gb RAM
Wompoo
Level 6
Level 6
Posts: 1116
Joined: Sat Dec 28, 2013 2:42 am

Re: Java installation in Mint 19.3

Post by Wompoo »

dave0808 wrote: Sun Dec 05, 2021 10:02 am ....................................... copy and paste the following:-

Code: Select all

java -version
Thanks Dave. I have done this, result shown below:

Code: Select all

jim@jim-LinuxMint-ASUS:~$ java -version
java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 8.0.6.5 - pxa6480sr6fp5-20200111_02(SR6 FP5))
IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20200108_436782 (JIT enabled, AOT enabled)
OpenJ9   - 7d1059c
OMR      - d059105
IBM      - c8aee39)
JCL - 20200110_01 based on Oracle jdk8u241-b07
jim@jim-LinuxMint-ASUS:~$ 
Desktop PC #1
Linux Mint 20.3 MATE desktop (64-bit), Asus
ASUSTeK model: P5G41T-M LX, 8 Gb RAM
dave0808
Level 5
Level 5
Posts: 984
Joined: Sat May 16, 2015 1:02 pm

Re: Java installation in Mint 19.3

Post by dave0808 »

That makes sense. As I recall, Java 8 didn't support the --version therefore you were getting an error when trying it. When you then set your Java Home to be Java11 following the instructions from @spamegg, it did work.

Looking now at the JavaPipe website that you linked to, I see where you got the command to show the java version but with a space between the dash and the "version" :roll: All in all, it was that single error (of the extraneous space) that led you down the wrong path when all along it would likely have worked straight away.

It claims to only require Java 1.4 or above, therefore you should be able to run it with Java8 or Java11. So download the "tunedpipe.jar" file. This will likely be saved into your Downloads directory, unless you specify somewhere else when prompted by your browser.

Then you can open a command line and simply invoke it with:-

Code: Select all

java -jar Downloads/tunedpipe.jar
Wompoo
Level 6
Level 6
Posts: 1116
Joined: Sat Dec 28, 2013 2:42 am

Unable to access Jarfile

Post by Wompoo »

Thanks for sticking with me on this Dave.

I followed your direction and this is the failure notice I received in Terminal:

Code: Select all

jim@jim-LinuxMint-ASUS:~$ java -jar Downloads/tunedpipe.jar
Error: Unable to access jarfile Downloads/tunedpipe.jar
jim@jim-LinuxMint-ASUS:~$ 
Desktop PC #1
Linux Mint 20.3 MATE desktop (64-bit), Asus
ASUSTeK model: P5G41T-M LX, 8 Gb RAM
dave0808
Level 5
Level 5
Posts: 984
Joined: Sat May 16, 2015 1:02 pm

Re: Java installation in Mint 19.3

Post by dave0808 »

Clearly the file does not exist in your Downloads folder, or it's not called tunedpipe.jar. Therefore you need to alter than command to provide the correct file location and name.
Wompoo
Level 6
Level 6
Posts: 1116
Joined: Sat Dec 28, 2013 2:42 am

Some success!

Post by Wompoo »

Yes, it was not in my downloads folder.
I found it in my tmp folder as per the screenshot below. I have had this confusing thing happen before. Are my settings wrong somewhere?
I did a search for the file, but nothing showed up.
However, it did find javapipe showed as present and I can open it.
This is some success, but I am still very confused between the two: "javapipe" and "tunedpipe".

Where have I gone wrong?

I will defer editing the opening post with "solved" until I sort out where I went wrong.

Edit:
This appears to be introducing a troubling instability in my computer. I am doubtful about continuing.
I was able to enable permissions in the javapipe file, and also open it. However, I cannot take a screenshot of it without it disappearing.
Not good.
Attachments
Tuned pipe.png
File in tmp.png
Desktop PC #1
Linux Mint 20.3 MATE desktop (64-bit), Asus
ASUSTeK model: P5G41T-M LX, 8 Gb RAM
dave0808
Level 5
Level 5
Posts: 984
Joined: Sat May 16, 2015 1:02 pm

Re: Java installation in Mint 19.3

Post by dave0808 »

There's a mix up in the names, from the website. They refer to a 'tunedpipe.jar' file but refer to the application as JavaPipe. Perhaps they change the name of the JAR file and didn't update the website.

At the end of the day, it doesn't matter what the file is called, it's purely for your reference. It doesn't change the name of the program. So for that side of it, the problem has been solved.

As for where the file was stored (/tmp rather than $HOME/Downloads), this is configured in your Firefox settings. Click on the "hamburger" icon in the top right to open up a menu, then click 'Settings'. The 'General' option on the left should be highlighted, then scroll down the page until you get to the section called "Files and Applications". Immediately there is a section for "Downloads" and there you can set the location for the Downloads. This can be any directory that you want, which you have write permission for, but it is often the $HOME/Downloads directory.

Then in a terminal, you can check that this exists, and its permissions by doing the following:-

Code: Select all

ls -ld $HOME/Downloads


If there are further issues in this regard, you could try to download other files, or saving some web pages, in order to check where they are stored. If you can repeat the issue, you should raise a separate topic to perhaps catch the attention of some Firefox experts (even if it's a Firefox issue).
Wompoo
Level 6
Level 6
Posts: 1116
Joined: Sat Dec 28, 2013 2:42 am

Re: Java installation in Mint 19.3

Post by Wompoo »

Many thanks Dave. It seems that you have solved this for me. And also, at least partly solved the historic file problem I have been experiencing.
I did follow your instructions and the Firefox settings do in fact, indicate as the downloads folder is selected. This compounds the mystery and I will open another dedicated thread.
I will attach a couple of screenshots to illustrate the above.
I'll also mark the thread as solved.

Jim.
Firefox settings.png
Attachments
Downloads check.txt
(137 Bytes) Downloaded 11 times
Desktop PC #1
Linux Mint 20.3 MATE desktop (64-bit), Asus
ASUSTeK model: P5G41T-M LX, 8 Gb RAM
Locked

Return to “Software & Applications”