Did you mean this thread?Christopher Laurenzano wrote:I thought I posted this topic. . . .
Christopher Laurenzano wrote:
echo JAVA_HOME
(Blank Line)
The path on your machine will be different. Please try the following instructions at a terminal (you probably have to escape the spaces):-Follow that with the two echo and two -version instructions and see what happens.[campbell@localhost java]$ echo $JAVA_HOME
/usr/java/jdk-18
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Christopher Laurenzano wrote:Ok , i just noticed something. I went to my MB pro and entered
echo $JAVA_HOME and there's a blank line, yet when I enter
java -version
It comes up with Java 18, the latest version that I downloaded, so on this machine it properly set it, but on my iMac it didn't.
The MB pro is running High Sierra -- could that mean something?
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
OCA/OCPJP8
Peter Schuster wrote:
I do not know where it is if you do not install a JDK but only a Java runtime environment.
OCA/OCPJP8
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
That is a different instruction from what I showed you.Christopher Laurenzano wrote:. . . which java -version . . .
The which command tells you what the path is to what happens when you call the program following. I suspect it has ignored the second argument (-version). You don't need it in this context. Use java ‑version.Christopher Laurenzano wrote:. . . the which command. Could you show me how to use it in this context?
Afraid not. That will list the paths to all the different locations where the java command might be found. Again not what I wanted.. . . I assume you mean
which -a java
am I correct?
Christopher Laurenzano wrote:Campbell -- I'm unfamiliar with the which command. Could you show me how to use it in this context?
Tom Holloway --
I don't quite understand. I'm not using an IDE -- I just use TextMate for now. I've always downloaded the JDK from Oracle's site, and i've had no problems before this. The download on the Oracle site is a .dmg file. I've always just downloaded it and installed it with no problem.
Campbell -- update. I looked up the command in the man pages, but i'm on my linux machine right now. But I assume you mean
which -a java
am I correct?
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Danger, 10,000 volts, very electic .... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|