Java configuration pits under Mac

Source: Internet
Author: User

Hint that there is no Java Runtime environment

Workaround
//查找你Java的安装目录//我的在如下/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home//使用文本编辑器打开bash或者zsh的配置文件//我使用的是bash vi .bash_profile//添加export JAVA_HOME="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home"PATH="{JAVA_HOME}:$PATH"//Java运行环境配置好了



Configuration failure causes terminal error and cannot enter profile editing processing again:

1. Enter in the command line: Export Path=/usr/bin:/usr/sbin:/bin:/sbin:/usr/x11r6/bin This guarantees that command-line commands can be used temporarily. Do not close the terminal until after the command has been executed.

2. Enter vi/etc/profile on the command line to see if you have set the Path property in addition.

In the VI editor, enter

Export Path=/usr/bin:/usr/sbin:/bin:/sbin:/usr/x11r6/bin

 

Java configuration pits under Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.