K
K
Kiriuha2015-02-04 19:32:37
Java
Kiriuha, 2015-02-04 19:32:37

How to setup java on mac os x?

in general, I can’t register in the java system, in Windows I know how everything works, but I can’t understand in the poppy, and I don’t find anything like that on the Internet, tell me, after I downloaded and installed Java SE what needs to be done, and how to use it in the development environment place?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lo-fi, 2015-02-05
@hrls

you download the JDK www.oracle.com/technetwork/java/javase/downloads/j...
it is the JDK, not the JRE, and it is x64 that
you install (you will need an admin password)
open the terminal and write javac -version there to find out what was installed toad and the compiler
you write /usr/libexec/java_home -v 1.8 to find out where the toad was put and all that
then you open .bashrc (or whatever it is called .profile probably) in the home directory (this is where it goes by cd without parameters in the terminal or in Finder Goto ~) and add export JAVA_HOME=path to the toad at the end
if javac -version complained about the inability to find the file, then write export PATH=$PATH:$JAVA_HOME/bin
or here's an example .zshrchttps://github.com/hrls/dotfiles/blob/master/.zshrc
everything, use

B
butthurt, 2015-02-05
@butthurt

What is the development environment? If without a retina, then the best way out is to install java 6 from Apple, fonts are normally displayed there, although this may have been corrected in the latest versions of java 8 for poppy too. (On retinas, it doesn't matter).
If anything, you can try to download it here:
support.apple.com/kb/DL1572?viewlocale=en_US&local...
www.oracle.com/technetwork/java/javase/downloads/j...
If you type java -version in the console, what is output? Maybe it's because you downloaded the JRE but didn't download the JDK that the ide requires?
In mac os, you do not need to prescribe anything, it, as a rule, connects everything itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question