Ruby Dropped in Netbeans 7,How to Use it in Netbeans7?

后端 未结 6 1617
臣服心动
臣服心动 2020-12-13 06:41

In Netbeans 7, Ruby support was dropped:

Although our Ruby support has historically been well received, based on existing low usage trends we are

6条回答
  •  臣服心动
    2020-12-13 07:23

    NetBeans 7.3:

    You can install the Ruby and Rails plugin for NetBeans 7.3.x directly from the plugin portal:

    http://plugins.netbeans.org/plugin/38549

    Here are some installation instructions:

    https://blogs.oracle.com/geertjan/entry/ruby_on_rails_in_netbeans

    NetBeans 7.2:

    To install the Ruby on Rails plugin for NetBeans 7.2 add this update center in Tools -> Plugins -> Settings:

    https://blogs.oracle.com/geertjan/resource/nb-72-community-ruby.xml

    Obtained from Geertjan's Blog:

    https://blogs.oracle.com/geertjan/entry/ruby_in_netbeans_ide_7

    Building the plugin from sources: I used and built the sources linked from Geertjan's Blog:

    http://hg.netbeans.org/community-ruby

    When building the plugin NetBeans (it took a very long time), I got the following error:

    Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found
    

    This can be fixed by installing ant-contrib on your system, e.g.:

    yum -y install ant-contrib

    Find the JAR file (in my case it was located at /usr/share/java/ant/ant-contrib.jar) and add it to Ant's classpath in NetBeans through Tools -> Options -> Java -> Ant -> Add JAR/ZIP.

    After that it should build. If you want to use the plugins, right-click the NB Ruby project and click on Package As -> NBMs. This will create an Update Center. You can add this update update center to your NetBeans via Tools -> Plugins -> Settings -> Add where the URL should be:

    file:/PathToTheRepository/build/updates/updates.xml

    After that you can install the Ruby and Rails plugin.

    Happy coding!

提交回复
热议问题