macosx-port-dev Digest, Vol 26, Issue 19
Yannick Jestin
yannick.jestin at enac.fr
Thu Feb 21 07:27:24 PST 2013
> Then I wanted to execute the application JDownloader who asked for (Apple 1.6 ?) java.
>
> Then, I fired the terminal, typed java -version and get:
> No Java runtime present, requesting install.
>
> And I promptl saw a new window that asked if I wanted to install java se 1.6.
>
> What do I do wrong ?
This has been discussed a few times on this mailing list, and google(java7 command line macosx). The java preference panel seems to have disappeared on Mountain Lion.
if the apple provided java6 is not present on Mountain Lion, the standard behavior is to trigger the download, even there is Oracle java7 on your computer.
The java command line then points to
$ which java
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java
If you want to use java7, with or without downloading apple java6, you can execute
$ export PATH=$(/usr/libexec/java_home)/bin:$PATH
$ which java
/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/bin/java
If you want this setting to be permanent, you can adjust your ~/.bashrc accordingly
--
Yannick Jestin
More information about the macosx-port-dev
mailing list