LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-09-2022, 11:49 AM   #1
ariel58
LQ Newbie
 
Registered: Nov 2022
Location: Buenos Aires, Argentina
Distribution: Slackware 15.0 (Salix 64 Xfce 15.0 x86_64)
Posts: 4

Rep: Reputation: 1
libreoffice don't detect JRE (Java Runtime Enviroment)


Hi,
I can't run libreoffice base because libreoffice doesn't detect JRE.

Could someone help?

OS: Slackware 15.0 (Salix Xfce 15.0 x86_64)

LibreOffice:
Version: 7.4.0.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 2; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: es-AR (es_ES.utf8); UI: es-ES
Calc: threaded

Code:
ariel[~]$ java -version
openjdk version "17.0.3" 2022-04-19
OpenJDK Runtime Environment (build 17.0.3+7)
OpenJDK 64-Bit Server VM (build 17.0.3+7, mixed mode, sharing)
Code:
ariel[~]$ type $PATH
bash: type: /usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/libexec/kf5:/usr/lib64/java/jre/bin:/usr/lib64/qt5/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/lib64/zulu-openjdk11/bin:/usr/lib64/zulu-openjdk8/bin:/usr/lib64/zulu-openjdk8/jre/bin: no encontrado
ariel[~]$
 
Old 12-09-2022, 12:18 PM   #2
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,105

Rep: Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281Reputation: 7281
Have you tried Alienbob's packages?
https://us.slackware.nl/people/alien...eoffice/pkg64/

https://us.slackware.nl/people/alien...lds/openjdk11/

Last edited by cwizardone; 12-09-2022 at 12:21 PM.
 
2 members found this post helpful.
Old 12-09-2022, 01:16 PM   #3
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,161
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Check the java options in Tools > Options > LibreOffice > Advanced.

"Use a Java runtime environment" must be checked and your JRE should appear in the list of installed JRE.
 
Old 12-11-2022, 09:06 AM   #4
ariel58
LQ Newbie
 
Registered: Nov 2022
Location: Buenos Aires, Argentina
Distribution: Slackware 15.0 (Salix 64 Xfce 15.0 x86_64)
Posts: 4

Original Poster
Rep: Reputation: 1
Hi gegechris99

Quote:
Originally Posted by gegechris99 View Post
Check the java options in Tools > Options > LibreOffice > Advanced.

"Use a Java runtime environment" must be checked and your JRE should appear in the list of installed JRE.

I couldn't check "Use a Java runtime environment", it was disabled.

Thank's
 
Old 12-11-2022, 09:38 AM   #5
ariel58
LQ Newbie
 
Registered: Nov 2022
Location: Buenos Aires, Argentina
Distribution: Slackware 15.0 (Salix 64 Xfce 15.0 x86_64)
Posts: 4

Original Poster
Rep: Reputation: 1
Smile

Hi cwizardone,

Your answer helped me a lot.

1) I have removed:
* openjre, openjdk 17.0.3, and all about java.
* libreoffice 7.4.0.2

2) I have added https://us.slackware.nl/people/alien/slackbuilds/ as source in Gslapt.

3) I installed with Gslapt:
* openjdk11 version 11.0.17_8-x86_64-1alien
* libreoffice version 7.4.3-x86_64-1alien

Now appears AlienBOB Slackware 11.0.17 as a JRE (Java Runtime Enviroment) installed and the ckeck box "Use a Java runtime environment" is enabled to be cheked.

Ok. My problem is solved.

Tanks to all.
 
1 members found this post helpful.
Old 12-11-2022, 09:51 AM   #6
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Oops !

I took too long to put together my post

Glad it's working for you, ariel58

-- kjh

tl;dr

ariel58 --

Do you have a JAVA_HOME Env Variable ?

I run AlienBob's openjdk here ...

This is mine:
Code:
env |grep -i java
This is the output:
Code:
JAVA_HOME=/usr/lib64/java                                                   # the JAVA_HOME ENV Varb is REQUIRED to use java
MANPATH=/usr/local/share/man:/usr/local/share/man::/usr/lib64/java/man:/usr/lib64/node_modules/npm/man:/usr/lib64/java/man:/usr/lib64/node_modules/npm/man
PATH=/home/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/libexec/kf5:/usr/lib64/java/bin:/usr/lib64/qt5/bin:/home/konrad/bin
There should be a file in /etc/profile.d that sets JAVA_HOME when your log in.

This is mine:
Code:
grep -Hi JAVA_HOME /etc/profile.d/*
This is the output:
Code:
/etc/profile.d/openjdk11.csh:setenv JAVA_HOME /usr/lib64/java               # this is for csh logins
/etc/profile.d/openjdk11.csh:setenv MANPATH ${MANPATH}:${JAVA_HOME}/man
/etc/profile.d/openjdk11.csh:setenv PATH ${PATH}:${JAVA_HOME}/bin
/etc/profile.d/openjdk11.sh:export JAVA_HOME=/usr/lib64/java                # this is for non-csh logins
/etc/profile.d/openjdk11.sh:export MANPATH="${MANPATH}:${JAVA_HOME}/man"
/etc/profile.d/openjdk11.sh:export PATH="${PATH}:${JAVA_HOME}/bin"
I run bash ( not csh ) so is /etc/profile.d/openjdk11.sh executable ?

This is mine:
Code:
ls -lad $(grep -l JAVA_HOME /etc/profile.d/*)
This is the output:
Code:
-rwxr-xr-x 1 root root 124 Nov 28 12:58 /etc/profile.d/openjdk11.csh*
-rwxr-xr-x 1 root root 127 Nov 28 12:58 /etc/profile.d/openjdk11.sh*        # yep, the x-bits are set ...
If you run Oracle Java, you may-or-may not have the /etc/profile.d files, depending on how the jre / jdk was installed.

If there are no /etc/profile.d files then that's the place to start.

And, like cwizardone said, AlienBob's Packages ( openjdk and libreoffice ) 'just work' for me.

-- kjh

Last edited by kjhambrick; 12-11-2022 at 09:54 AM. Reason: oops too slow !
 
1 members found this post helpful.
Old 12-15-2022, 10:08 AM   #7
ariel58
LQ Newbie
 
Registered: Nov 2022
Location: Buenos Aires, Argentina
Distribution: Slackware 15.0 (Salix 64 Xfce 15.0 x86_64)
Posts: 4

Original Poster
Rep: Reputation: 1
Hi kjhambrick

This is mine:
Code:
$ env |grep -i java
This is the output
Code:
JAVA_HOME=/usr/lib64/java
MANPATH=:/usr/lib64/java/man
PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/java/bin:/usr/lib64/libexec/kf5:/usr/lib64/java/bin:/usr/lib64/qt5/bin:/usr/local/sbin:/sbin:/usr/sbi
This is mine:
Code:
$ grep -Hi JAVA_HOME /etc/profile.d/*
This is the output:
Code:
/etc/profile.d/jdk11.csh:setenv JAVA_HOME /usr/lib64/java
/etc/profile.d/jdk11.csh:setenv PATH ${PATH}:${JAVA_HOME}/bin
/etc/profile.d/jdk11.sh:export JAVA_HOME=/usr/lib64/java
/etc/profile.d/jdk11.sh:export PATH=${PATH}:${JAVA_HOME}/bin
/etc/profile.d/openjdk11.csh:setenv JAVA_HOME /usr/lib64/java
/etc/profile.d/openjdk11.csh:setenv MANPATH ${MANPATH}:${JAVA_HOME}/man
/etc/profile.d/openjdk11.csh:setenv PATH ${PATH}:${JAVA_HOME}/bin
/etc/profile.d/openjdk11.sh:export JAVA_HOME=/usr/lib64/java
/etc/profile.d/openjdk11.sh:export MANPATH="${MANPATH}:${JAVA_HOME}/man"
/etc/profile.d/openjdk11.sh:export PATH="${PATH}:${JAVA_HOME}/bin"
This is mine:
Code:
$ ls -lad $(grep -l JAVA_HOME /etc/profile.d/*)
This is the output:
Code:
-rwxr-xr-x 1 root root  70 dic 11 02:01 /etc/profile.d/jdk11.csh
-rwxr-xr-x 1 root root  70 dic 11 02:01 /etc/profile.d/jdk11.sh
-rwxr-xr-x 1 root root 124 nov 28 15:58 /etc/profile.d/openjdk11.csh
-rwxr-xr-x 1 root root 127 nov 28 15:58 /etc/profile.d/openjdk11.sh
Best regards.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Java Woes: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available ... chytraeus Slackware 10 11-27-2010 10:04 AM
Java runtime enviroment plugin won't work with firefox in xubuntu Akashe Linux - Newbie 2 01-28-2008 02:59 PM
LimeWire install - problems with Java Runtime Enviroment Par4n0iA Linux - Software 15 03-15-2007 06:22 PM
Java Runtime Enviroment .bin file The_Messiah Linux - Software 6 04-06-2005 05:35 PM
Removal of Java Runtime Environment (JRE) scottpioso Linux - Software 5 06-03-2003 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration