Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Installing Deployr on RHEL 7: http://deployr.revolutionanalytics.c...admin/install/
Installed Java from Josee's link @ bottom: https://groups.google.com/forum/#!se...g/_jzuuKXuDAAJ, jre1.8.0_60
set JAVA_HOME to export JAVA_HOME=/usr/java/jre1.8.0_60
$JAVA_HOME/bin/java -version returns output of:
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
added @ end of /etc/profile:
export JAVA_HOME=/usr/java/jre1.8.0_60
export PATH="$JAVA_HOME/bin:$PATH"
source /etc/profile
hard reboot OS
Still get "Please set JAVA_HOME" on start of Deployr install.
????? AWS and MSFT support recommend exactly what I did...
Is this an initial Java installation? Have you tried running, say, a Java "Hello, World!" program from the command line, for example with you in your /home/ directory? Although I doubt it, you could be dealing with a bug. But, this test may help you rule something out---whether you are sure that you are sure that the environment variable is set.
Yes an initial install. And I only did JRE, not JDK or server JRE, as recommended by MSFT for this install. How do I run that Hello World program...sounds like a great idea?
It occurred to me: the deployr install docs say only to download jre, and not the jdk. Does that make any sense? Don't I have to have JDK too? And JAVA_HOME pertains to JDK, and JRE_HOME pertains to JRE? Can I install JDK after JRE without screwing anything up? Or do I install them both at once and delete the old one first?
JRE stands java runtime environment, is used to run java programs. JDK stands for java development environment and is used to create java programs. Obviously JKD contains JRE too.
You can install JDK next to JRE, that should not be a problem. If you have not installed JDK, you cannot set JAVA_HOME to JDK (that simply make no sense), instead, you need yo set it to JRE (or install JDK too).
Yes - unfortunately, I had JAVA_HOME to jre (when there was no jdk). Installed JDK and set it instead to jdk, still didn't work. Very annoying, $JAVA_HOME/bin/java -version returns output of:
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
But I still get "Please set JAVA_HOME" error on trying to install my software.
Last edited by brownratpig; 09-23-2015 at 02:58 AM.
Installing Deployr on RHEL 7: http://deployr.revolutionanalytics.c...admin/install/
Installed Java from Josee's link @ bottom: https://groups.google.com/forum/#!se...g/_jzuuKXuDAAJ, jre1.8.0_60
set JAVA_HOME to export JAVA_HOME=/usr/java/jre1.8.0_60
$JAVA_HOME/bin/java -version returns output of:
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
added @ end of /etc/profile:
export JAVA_HOME=/usr/java/jre1.8.0_60
export PATH="$JAVA_HOME/bin:$PATH"
source /etc/profile
hard reboot OS
Still get "Please set JAVA_HOME" on start of Deployr install.
????? AWS and MSFT support recommend exactly what I did...
Thanks for any advice.
Maybe need to put $PATH @ start of PATH? (instead of at end)
I went ahead and tried to add export JAVA_HOME=/usr/java/jdk1.8.0_60 and export PATH to bashrc as well...no difference.
$JAVA_HOME/bin/javac returns a guide for usage on javac
As for setting JAVA_HOME = jdk path, I mentioned above twice that I have already tried this.
If you mean $JAVA_HOME/bin/java -version, I have shown the output multiple times above, it shows as though it is set correctly.
The issue lies elsewhere.
you need to read the documentation of Deployr, probably incorrect version or ??? - or - if the installer was a readable shell script you can check what's happened
you need to read the documentation of Deployr, probably incorrect version or ??? - or - if the installer was a readable shell script you can check what's happened
Deployr support told me to set it the way I have thus far, then threw up their hands and effectively said, "we don't know." However, the installer is a readable shell script. But won't I be seeing the script before it runs, rather than the error broken down after the fact?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.