LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-12-2014, 06:00 PM   #46
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195

Yes.
 
Old 06-12-2014, 06:07 PM   #47
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528

Original Poster
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
Originally Posted by moisespedro View Post
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)
 
Old 06-13-2014, 01:30 AM   #48
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
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.
 
Old 06-13-2014, 10:37 PM   #49
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528

Original Poster
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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?
 
Old 06-14-2014, 07:28 AM   #50
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Quote:
Originally Posted by Ztcoracat View Post
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.
 
Old 06-14-2014, 11:58 AM   #51
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528

Original Poster
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
Originally Posted by ruario View Post
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.
 
Old 06-14-2014, 11:42 PM   #52
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 955

Rep: Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539
Quote:
Originally Posted by Ztcoracat View Post
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.
Old 06-15-2014, 07:15 PM   #53
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528

Original Poster
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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.
 
Old 06-15-2014, 09:22 PM   #54
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 955

Rep: Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539
Quote:
Originally Posted by Ztcoracat View Post
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.
Old 06-15-2014, 10:14 PM   #55
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528

Original Poster
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
Originally Posted by Paulo2 View Post
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:-
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
File pk11func.h not found while compiling eCryptfs on Slackware 13.1 emirhg Linux - Newbie 1 04-26-2011 05:23 PM
linker script file not found while using codesourcery g++ lite to program a developme raphtor Linux - Software 0 10-21-2009 04:04 AM
[SOLVED] Slackware 12.2 Default Install eth0 not found sycarion Linux - Networking 8 10-09-2009 03:55 AM
can't install a program -- the 'configure' command is not found jaffa_kree Linux - Newbie 3 09-07-2006 10:39 PM
how do i install new drivers i found on slackware 8.0 Wicky Linux - Newbie 2 10-15-2002 10:29 PM

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

All times are GMT -5. The time now is 05:38 PM.

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