Install NetBeans without JDK installed on MacOS

Source: Internet
Author: User

The title is a bit of a detour, which is explained by the tragic situation of Java in the desktop environment.

Almost all Web sites now use Java applets, and desktop applications written in Java are almost always ides. The IDE, written in Java, is almost embedded with the JRE for ease of installation. Since all of them are jre,applet and useless, what about installing the JRE independently? The installed JRE is also running automatically and will be updated.

But NetBeans on MacOS is an exception, and NetBeans on Windows doesn't have to install the JRE first.

MacOS has actually removed Java,phpstorm, Andriod studio and the other has embedded the JRE. If you already have an IDE with an embedded JRE installed, in order to install NetBeans (next: You can use Phpstrom AH), then installing the JRE independently is obviously annoying, not to mention that the JRE is updated from time to times, and the browser is restarted (no one is using the applet!!! Java you wake up!!! )。

On this point, I really hope that NetBeans will be able to recognize the status quo, do not make Pkg's release package, learn Phpstrom (basically, now install NetBeans is to develop php/html/javascript, this is the popular origin of NetBeans).

Now, let's make Netbeans.app.

1. Download the MacOS version of the NetBeans 8.2,suspicious package.

2. Use the suspicious package to unpack the NetBeans 8.2.app and drop it into < personal > catalog.

3. Save unpack200.sh to < personal > catalogue.

4. Modify NetBeans 8.2.app/contents/resources/netbeans/etc/netbeans.conf to join

Netbeans_jdkhome= "<jre_path>"

Jre_path is the JRE that comes with other software that is already installed, such as Android Studio.

5. Execute SH unpack200.sh netbeans\ 8.2.app <jre_path>

Production Done!

The next step is run, security-unknown developer-still open, and finally drag into the application directory and you're done.

This makes the app package less than the original installation of a layer of folders, looks more comfortable.

Install NetBeans without JDK installed on MacOS

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.