How to develop JRuby in NetBeans

Source: Internet
Author: User
Tags netbeans

Preface Introduction

JRuby is an implementation of pure Java based on the famous Ruby programming language, which is a dynamic, open source programming language, characterized by simplicity and high development efficiency. Ruby has good syntax, and programming statements are natural to read and easy to write. This article shows you how to use the NetBeans integrated development environment for JRuby development.

The NetBeans integrated development environment is free of charge and is an open source integrated development environment for software developers. The NetBeans integrated development environment provides all the tools developers need to create professional cross-platform desktops, businesses, web, and mobile apps. In this article, you will learn how to transform a JRuby project into a NetBeans project, which will help users develop, compile, and test JRuby projects in a NetBeans environment.

1 Required Software

Before you start, you need to install NetBeans 6.0 on your computer.

2 note of this mark

<netbeans_home>--netbeans Integrated Development Environment installation directory

<user_home>--the user's home directory. such as "C:\Documents and Settings\user_home"

<jruby_src_root>--jruby Source Files Directory

3 Why do you choose NetBeans?

The NetBeans integrated development environment is a robust, free, open source Java integrated development environment that provides all the tools that developers need to create cross-platform desktops, web, and mobile applications. The benefits you can get with NetBeans:

1 A variety of source code integration System to help users easily manage the source code.

2 The Ant compilation system enables users to build projects in this environment, or to build projects in this environment.

3) Integrated compilers and debuggers

4 has more features to extend your application

Simply put, the reason for using NetBeans is that it is a free, open source, powerful, extensible integrated development environment where you can edit, compile, debug, and manage your applications in this environment.

Actual combat

Create JRuby project in NetBeans

Download JRuby

1 Download JRuby source code from http://dist.codehaus.org/jruby/, we use this link source http://dist.codehaus.org/jruby/jruby-src-0.9.8.tar.gz

2 extract the downloaded files and place them in the <jruby_src_root> directory

3 Replace the Ant.jar file in the <jruby_src_root>/lib directory with a Ant.jar 1.6.5 version or an updated version. This step is very much needed, otherwise you will be prompted with an error message: "The existing Ant.jar is a old 1.5 version."

To create a JRuby project step

1. Select File > New Project in the main menu, and then a new Project Wizard opens.

2 in the Category list, select Java Project with existing ANT Script, and then click Next.

3 Specify the location of the JRuby project file and the location of the Build.xml file on the name and Location page. In the example in this article, the JRuby project file location is in the C:\tmp\jruby-0.9.8

Click Next

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.