How to make -J-Druby.interpreter work.

View: New views
2 Messages — Rating Filter:   Alert me  

How to make -J-Druby.interpreter work.

by Chris Kutler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

In my platform manager, I have a JRuby platform entry with the Interpreter set to C:\jruby\jruby-1.1.4\bin\jruby.bat.

I would like this to always be the default interpreter when I create new projects.

So, I started up NetBeans with this option:

-J-Druby.interpreter=C:\jruby\jruby-1.1.4\bin\jruby.bat

Now, when I create a new project, the Ruby Platform drop-down list says

<valid platform has to be selected>

There are no other entries on the drop-down list.

And the Platform Manager, the Platforms List no longer shows all my registered platforms, it only shows

<valid platform has to be selected>

What am I doing wrong?

Or perhaps this option is obsolete and needs to be removed or marked as 6.0 only (or whatever it used to work in).



Re: How to make -J-Druby.interpreter work.

by Tor Norbye :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think ruby.interpreter is a flag to bypass the ruby platform manager completely. It's used primarily from preindexing scripts and such.

-- Tor

On Sep 26, 2008, at 9:18 AM, Chris Kutler wrote:

Hello,

In my platform manager, I have a JRuby platform entry with the Interpreter set to C:\jruby\jruby-1.1.4\bin\jruby.bat.

I would like this to always be the default interpreter when I create new projects.

So, I started up NetBeans with this option:

-J-Druby.interpreter=C:\jruby\jruby-1.1.4\bin\jruby.bat

Now, when I create a new project, the Ruby Platform drop-down list says

<valid platform has to be selected>

There are no other entries on the drop-down list.

And the Platform Manager, the Platforms List no longer shows all my registered platforms, it only shows

<valid platform has to be selected>

What am I doing wrong?

Or perhaps this option is obsolete and needs to be removed or marked as 6.0 only (or whatever it used to work in).