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-12-2014, 06:00 PM
|
#46
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep:
|
Yes.
|
|
|
06-12-2014, 06:07 PM
|
#47
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Quote:
Originally Posted by moisespedro
Yes.
|
Code:
bash-4.2$ JAVACMD=$(type -p java) sh /home/zebracat/Downloads/bibledesktop-1.6/BibleDesktop.sh
Error: JAVA_HOME is not defined correctly.
We cannot execute java
bash-4.2$
Code:
bash-4.2$ su -
Password:
Lack of capability is usually disguised by lack of interest.
root@redhatcat:~# bash-4.2$ JAVACMD=$(type -p java) sh /home/zebracat/Downloads/bibledesktop-1.6/BibleDesktop.sh
-su: bash-4.2$: command not found
root@redhatcat:~# Error: JAVA_HOME is not defined correctly.
-su: Error:: command not found
root@redhatcat:~# We cannot execute java
-su: We: command not found
root@redhatcat:~# bash-4.2$
-su: bash-4.2$: command not found
root@cat:~#
root@cat:~#
root@cat:~#
root@cat:~# JAVACMD=$(type -p java) sh /home/zebracat/Downloads/bibledesktop-1.6/BibleDesktop.sh
No protocol specified
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:119)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at java.awt.Toolkit$2.run(Toolkit.java:868)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:860)
at javax.swing.ImageIcon.<init>(ImageIcon.java:186)
at javax.swing.ImageIcon.<init>(ImageIcon.java:205)
at org.crosswire.common.swing.GuiUtil.getIcon(GuiUtil.java:81)
at org.crosswire.bibledesktop.desktop.Desktop.<clinit>(Desktop.java:1244)
|
|
|
06-13-2014, 01:30 AM
|
#48
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
|
Don't run BibleDesktop.sh as root. Run it as your normal user. Also make sure you have logged out of your desktop environment once (and then back in again) after the install of Java. This is to ensure all the environmental variables are setup correctly for your user after you installed Java.
|
|
|
06-13-2014, 10:37 PM
|
#49
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
The program Bible Desktop now runs and works. Thank You for staying with me:--
This program only works by executing the above cmd and uses the internet connection to do so as well.
I had wondered why it did not install in the Applications Menu under 'Education'.
Is this the case because certain types programs are designed to run that way and that way only?
|
|
|
06-14-2014, 07:28 AM
|
#50
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
|
Quote:
Originally Posted by Ztcoracat
Is this the case because certain types programs are designed to run that way and that way only?
|
The author has written the application in Java, presumably so they could write it once for all platforms. They have not spent time on thinking about Linux "integration".
You could define JAVACMD with the correct location to Java in your .bash_profile (or .profile) and make BibleDesktop.sh executable. That way you could run it directly.
Furthermore, it should be possible to make a .desktop file so that you could add it to the application menu in your desktop environment.
I'll leave someone else to help you with that. Whilst I respect your right to believe whatever you wish to believe and was more than happy to help you get this working as a Linux/Slackware learning exercise, I would not be interested in doing any more that would encourage the usage of this software.
Last edited by ruario; 06-14-2014 at 07:30 AM.
|
|
|
06-14-2014, 11:58 AM
|
#51
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Quote:
Originally Posted by ruario
The author has written the application in Java, presumably so they could write it once for all platforms. They have not spent time on thinking about Linux "integration".
You could define JAVACMD with the correct location to Java in your .bash_profile (or .profile) and make BibleDesktop.sh executable. That way you could run it directly.
Furthermore, it should be possible to make a .desktop file so that you could add it to the application menu in your desktop environment.
I'll leave someone else to help you with that. Whilst I respect your right to believe whatever you wish to believe and was more than happy to help you get this working as a Linux/Slackware learning exercise, I would not be interested in doing any more that would encourage the usage of this software.
|
Thanks for the confirmation that a desktop file can be created and added to the application menu.
|
|
|
06-14-2014, 11:42 PM
|
#52
|
Member
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 955
|
Quote:
Originally Posted by Ztcoracat
I had wondered why it did not install in the Applications Menu under 'Education'.
|
You can do it adding a .desktop file like ruario said.
For "zebracat" user, save this as /home/zebracat/.local/share/applications/bd.desktop
Code:
[Desktop Entry]
Name=Bible Desktop
Exec=/home/zebracat/Downloads/bibledesktop-1.6/BibleDesktop.sh
Icon=/usr/share/pixmaps/Reference.xpm
Type=Application
Categories=Education
If more users will use that software, you must move bibledesktop-1.6 directory to /opt
and save that bd.desktop file at /usr/share/applications/
ps- the "Exec=" line must be the same that you type to launch the software.
Last edited by Paulo2; 06-14-2014 at 11:48 PM.
|
|
2 members found this post helpful.
|
06-15-2014, 07:15 PM
|
#53
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Thank you Paulo2 but I don't understand where I should copy and paste this:
Code:
[Desktop Entry]
Name=Bible Desktop
Exec=/home/zebracat/Downloads/bibledesktop-1.6/BibleDesktop.sh
Icon=/usr/share/pixmaps/Reference.xpm
Type=Application
Categories=Education
and place it in what file? (for the program to launch)
Make a brand new file with either nano or vi?
Last edited by Ztcoracat; 06-15-2014 at 07:20 PM.
|
|
|
06-15-2014, 09:22 PM
|
#54
|
Member
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 955
|
Quote:
Originally Posted by Ztcoracat
Make a brand new file with either nano or vi?
|
Yes, that way. Copy the code and paste it in a new file and save as I said.
It will work
|
|
1 members found this post helpful.
|
06-15-2014, 10:14 PM
|
#55
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Quote:
Originally Posted by Paulo2
Yes, that way. Copy the code and paste it in a new file and save as I said.
It will work
|
As soon as the new file was created and saved I closed the terminal and went directly to the Applications Menu and the program is now in my menu; Thank You Paulo2-
Have a good week ahead:-
|
|
|
All times are GMT -5. The time now is 05:38 PM.
|
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
|
|