Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-11-2014, 11:32 PM
|
#31
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
|
Quote:
Originally Posted by Paulo2
After installing java, you can try that
$ JAVACMD=$(type -p java) sh BibleDesktop.sh
because BibleDesktop.sh doesn't find java path.
|
It doesn't find Java because you need to log out and back in once, after have first installed it (or at least source the profile file it setup in /etc/profile.d).
|
|
|
06-11-2014, 11:34 PM
|
#32
|
Member
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 950
|
Quote:
Originally Posted by ruario
Wow, fortune seems to understand context. Something I had long suspected.
|
I don't have fortune anymore, but this one is very good.
|
|
|
06-11-2014, 11:37 PM
|
#33
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
|
Quote:
Originally Posted by cwizardone
Bingo!
I was reading through this thread and was wondering why this wasn't brought up earlier.
|
Yeah, this was a very odd thread. Not sure how we got to page two of comments with so many obvious errors. Presumably most of the regulars were asleep or otherwise occupied.
|
|
|
06-11-2014, 11:39 PM
|
#34
|
Member
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 950
|
Quote:
Originally Posted by ruario
It doesn't find Java because you need to log out and back in once, after have first installed it (or at least source the profile file it setup in /etc/profile.d).
|
I think this isn't the problem, because it didn't work to me.
I suspect that this piece is missing the java path.
BibleDesktop.sh
Code:
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
else
JAVACMD=`ls -d $ROOT/Java/linux/jre*/bin/java 2> /dev/null`
if [ -z "$JAVACMD" ] ; then
JAVACMD=`which java 2> /dev/null `
if [ -z "$JAVACMD" ] ; then
JAVACMD=java
fi
fi
fi
fi
|
|
1 members found this post helpful.
|
06-11-2014, 11:55 PM
|
#35
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
|
Quote:
Originally Posted by Paulo2
I think this isn't the problem, because it didn't work to me.
I suspect that this piece is missing the java path.
|
Did you actually try? I mean logging out and in again, as I suggested.
I am not going to install this program to check for you but a re-log should work since /etc/profile.d/openjdk.sh sets up $JAVA_HOME as I stated previously.
It also adds the java to the $PATH.
Code:
$ cat /etc/profile.d/openjdk.sh
#!/bin/sh
export JAVA_HOME=/usr/lib/java
export MANPATH="${MANPATH}:${JAVA_HOME}/man"
export PATH="${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
Last edited by ruario; 06-12-2014 at 12:00 AM.
Reason: added mention of java and path
|
|
|
06-12-2014, 12:11 AM
|
#36
|
Member
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 950
|
Quote:
Originally Posted by ruario
Did you actually try? I mean logging out and in again, as I suggested.
|
Yes, my JAVA_HOME is set correctly.
The problem is that with Open java the path is set incorrectly in BibleDesktop.sh.
I don't know with Oracle java, I don't have it.
|
|
1 members found this post helpful.
|
06-12-2014, 12:57 AM
|
#37
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
|
Quote:
Originally Posted by Paulo2
The problem is that with Open java the path is set incorrectly in BibleDesktop.sh.
|
Indeed, I stand corrected.
Quote:
Originally Posted by Paulo2
I don't know with Oracle java, I don't have it.
|
I just ran a quick test. On 32-bit Slackware with Oracle JRE installed, the path to Java matches what BibleDesktop.sh sets $JAVACMD to.
Code:
$ ls /var/log/packages/*jre*
/var/log/packages/jre-7u60-i586-1
$ cat test # Using the code snippet you provided from BibleDesktop.sh
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
else
JAVACMD=`ls -d $ROOT/Java/linux/jre*/bin/java 2> /dev/null`
if [ -z "$JAVACMD" ] ; then
JAVACMD=`which java 2> /dev/null `
if [ -z "$JAVACMD" ] ; then
JAVACMD=java
fi
fi
fi
fi
echo $JAVACMD
$ ./test
/usr/lib/java/bin/java
$ which java
/usr/lib/java/bin/java
For comparison, with OpenJRE:
Code:
$ ls /var/log/packages/*jre*
/var/log/packages/openjre-7u55_b14-i486-1alien
$ ./test
/usr/lib/java/bin/java
$ which java
/usr/lib/java/jre/bin/java
In summary, you are right. BibleDesktop.sh is stupid because it assumes Oracle Java will be used.
Last edited by ruario; 06-12-2014 at 01:12 AM.
Reason: added a comparison with OpenJRE
|
|
|
06-12-2014, 10:01 AM
|
#38
|
Member
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 950
|
Quote:
Originally Posted by ruario
BibleDesktop.sh is stupid because it assumes Oracle Java will be used.
|
I think that line in the 'else', "JAVACMD=`which java 2> /dev/null `" would be the first one,
out of conditional. It would save a lot of problems.
|
|
|
06-12-2014, 01:57 PM
|
#39
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,307
Rep:
|
Why not?
Code:
installpkg /tmp/openjdk-7u55_b14-x86_64-1alien.txz
Oops! Missed reading a page.
Last edited by brianL; 06-12-2014 at 02:01 PM.
|
|
|
06-12-2014, 04:43 PM
|
#40
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Quote:
Originally Posted by ruario
Just for the record, stop trying to use slackpkg and to install local files, with a local path. That will not work. slackpkg installs packages from the Slackware repository.
Also installpkg will install local packages but only Slackware packages. AlienBOB's Java package will be fine but not any random tar you happen to come across. Remember that while Slackware packages are compressed tar archives, not every compressed tar archive is a Slackware package.
Code:
installpkg /home/zebracat/Downloads/openjdk-7u55_b14-x86_64-1alien.txz
|
Thanks for the confirmation on not using slackpkg to install local files.
Code:
bash-4.2$ su -
Password:
Q: How do you keep a moron in suspense?
root@cat:~# installpkg /home/zebracat/Downloads/openjdk-7u55_b14-x86_64-1alien.txz
Verifying package openjdk-7u55_b14-x86_64-1alien.txz.
Installing package openjdk-7u55_b14-x86_64-1alien.txz:
PACKAGE DESCRIPTION:
# Java(TM) 2 Platform Standard Edition Development Kit.
#
# The Java 2 SDK software includes tools for developing, testing, and
# running programs written in the Java programming language. This
# package contains the Open Source version of the JDK, which holds
# everything you need to run Java(TM).
#
# For additional information, refer to this web page:
# http://openjdk.java.net/
#
Executing install script for openjdk-7u55_b14-x86_64-1alien.txz.
Package openjdk-7u55_b14-x86_64-1alien.txz installed.
root@cat:~#
|
|
|
06-12-2014, 05:00 PM
|
#41
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Quote:
Originally Posted by Paulo2
Yes, did happen here too. I uninstalled java and installed again
with slackpkg install, and got the same problem.
I always use installpkg and removepkg with no problems,
so installed "installpkg openjre...",
Try using installpkg instead of slackpkg.
After installing java, you can try that
$ JAVACMD=$(type -p java) sh BibleDesktop.sh
because BibleDesktop.sh doesn't find java path.
A little off-topic, bibledesktop-1.6 dir size is 3.7MB.
When I launch Bible Desktop, it says that I have no Bibles
installed and asks to download from internet. Is this right?
|
Yes that's right.
Upon install BibleDesktop there will not be any modules installed.
You have to go through and choose the various types of modules (various different bibles/books) that you want.
A fresh install of Xiphos you have to do the same thing.
I'll try this now while I am in the Downloads directory with bibledesktop-1.6
Code:
JAVACMD=$(type -p java) sh BibleDesktop.sh
Should I open the bibledesktop-1.6 file and use ls to show all the files in the termianl and than run
the above cmd?
|
|
|
06-12-2014, 05:03 PM
|
#42
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep:
|
Just cd to the directory and run the command. You don't need to list the files.
EDIT: Actually you don't even need to cd to the directory, you could do:
JAVACMD=$(type -p java) sh /path/to/BibleDesktop.sh
Last edited by moisespedro; 06-12-2014 at 05:04 PM.
|
|
|
06-12-2014, 05:29 PM
|
#43
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Quote:
Originally Posted by moisespedro
Just cd to the directory and run the command. You don't need to list the files.
EDIT: Actually you don't even need to cd to the directory, you could do:
JAVACMD=$(type -p java) sh /path/to/BibleDesktop.sh
|
Code:
bash-4.2$ JAVACMD=$(type -p java) sh /home/zebracat/Downloads/BibleDesktop.sh
sh: /home/zebracat/Downloads/BibleDesktop.sh: No such file or directory
bash-4.2$
bash-4.2$ JAVACMD=$(type -p java) sh BibleDesktop.sh
sh: BibleDesktop.sh: No such file or directory
bash-4.2$
|
|
|
06-12-2014, 05:32 PM
|
#44
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep:
|
Type the correct path
|
|
|
06-12-2014, 05:54 PM
|
#45
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
I went to my Downloads directory where the bibledesktop-1.6 is to check on the full path.
I found the BibleDesktop.sh file.
Unless my vision is failing me the full path should be:
/home/zebracat/Downloads/bibledesktop-1.6/
Took a screenshot for you to see:- Looking at the screenshot; do you agree?
http://s1052.photobucket.com/user/Ul...sktop.png.html
So unless I'm mistaken I can now run this:
Code:
JAVACMD=$(type -p java) sh /home/zebracat/Downloads/bibledesktop-1.6/BibleDesktop.sh
Right?
|
|
|
All times are GMT -5. The time now is 05:19 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|