[SOLVED] Trying to install program, file not found, Slackware 14.1
SlackwareThis 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.
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.
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)
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.
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?
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.
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.
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-
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.