Steps for setting up the ruby environment in netbeans: netbeansruby

Source: Internet
Author: User

Steps for setting up the ruby environment in netbeans: netbeansruby

During the company's internship, the company's scripting language was ruby. Of course, the ruby environment must be set up. During these two days, after encountering various problems, I will reorganize the process today.

There are two problems during the installation process: the first one is that at the beginning of netbeans7, IDE does not support ruby anymore, we installed the plug-in netbeans. Another problem is that ruby1.9 previously did not support Chinese characters. It is inevitable that there will be Chinese characters in the automation script, which also needs to be solved.

Installation preparation:
1. Versions later than ruby1.9
2. netbeans8.0 exe
3. netbeans8.0 plug-in
4. jdk (download 32-bit or 64-bit from your computer)

The above four files can be downloaded on the corresponding official website, and there are a lot of online resources, which are not described here. Plug-ins and ruby versions are too difficult to find

Installation Process

1. Move ruby210 in the plug-in to drive C. It is recommended to put it in drive C to avoid problems in future updates.

2. Install jdk according to the installation guide (always "Next" and "agree ).
Note: Install JDK before installing netbeans. Otherwise, the installation will fail.

3. Install netbeans. Do not check for updates during installation; otherwise, the installation will be slow.

4. After netbeans is successfully installed, start netbeans. The steps for installing the plug-in are as follows.


Install all the jar plug-ins before installing the nbm plug-in.

5. Import ruby210 to netbeans. Shows the installation steps.

6. After installing the plug-in, restart netbeans.

7. Configure the netbeans console font. Open the netbeans installation directory, find the file with the. conf Suffix in etc, and add "-J-Dfile.encoding = UTF-8" in the netbeans_default_options line"

Restart the software and test whether the installation is successful.

Possible installation problems:
1. netbeans Installation failed. Check whether jdk is successfully installed.
2. After netbeans is installed, there is no ruby option in the new project. Check whether the plug-in is successfully installed.
3. The software can run but cannot display Chinese characters. Check whether the configuration file has been modified successfully.

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.