Forum: JRuby JRuby 1.2.0RC1 on windows. Problem with spaces in path anme

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Scott S. (Guest)
on 2009-03-05 18:48
I was developing using NetBeans 6.5 in a Windows environment uisng JRuby

My JRuby is installed in the standard NetBeans location:

C:\Program Files\NetBeans 6.5\ruby2\jruby-1.1.6

From the command prompt:

H:\>jruby --version
jruby 1.1.6 (ruby 1.8.6 patchlevel 114) (2008-12-17 rev 8388) [x86-java]

Install JRuby 1.2.0RC1:

C:\Program Files\NetBeans 6.5\ruby2\jruby-1.2.0RC1

Change the JRUBY_HOME and PATH variables to now point to the 1.2.0RC1.

From the command prompt:

H:\>jruby --version
Exception in thread "main" java.lang.NoClassDefFoundError:
Caused by: java.lang.ClassNotFoundException: Files\NetBeans
        at Method)
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        at java.lang.ClassLoader.loadClassInternal(
Could not find the main class: Files\NetBeans.  Program will exit.

If I try and add 1.2.0RC1 in NetBeans using Tools->Ruby Platforms->Add,
I receive an error to the effect:

C:\Program Files\NetBeans 6.5\ruby2\jruby-1.2.0RC1\bin\jruby.bat does
not seem to be a valid Ruby interpreter.

It appears to be having a problem with the spaces in the file path. If I
change the environment variables back to 1.1.6. Everything works fine
from the command line and from within NetBeans.
This topic is locked and can not be replied to.