Forum: JRuby JRuby 1.2.0RC1 problem with spaces in path on Windows

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1bcec7929feb9d0dc18913135016b7c2?d=identicon&s=25 Scott Strmel (strmesc)
on 2009-03-05 17:53
(Received via mailing list)
I was developing using NetBeans 6.5 in a Windows environment uisng JRuby
1.1.6.

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:
Files\NetBeans
Caused by: java.lang.ClassNotFoundException: Files\NetBeans
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
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.
--
View this message in context:
http://www.nabble.com/JRuby-1.2.0RC1-problem-with-...
Sent from the JRuby - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Ede2aa10c6462f1d825143879be59e38?d=identicon&s=25 Charles Oliver Nutter (Guest)
on 2009-03-05 19:05
(Received via mailing list)
Can you file a blocker bug for this? It looks like we may have damaged
spaces-in-patch handling for 1.2 somehow.

I shake my fist at Windows every day.

strmesc wrote:
> jruby 1.1.6 (ruby 1.8.6 patchlevel 114) (2008-12-17 rev 8388) [x86-java]
> Exception in thread "main" java.lang.NoClassDefFoundError:
>
> 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.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
1bcec7929feb9d0dc18913135016b7c2?d=identicon&s=25 Scott Strmel (strmesc)
on 2009-03-05 19:37
Unfortunately I am bound to the windows environment due to work
constraints.

The Blocker Bug is JRUBY-3469

Thanks


Charles Oliver Nutter wrote:
> Can you file a blocker bug for this? It looks like we may have damaged
> spaces-in-patch handling for 1.2 somehow.
>
> I shake my fist at Windows every day.
>
> strmesc wrote:
>> jruby 1.1.6 (ruby 1.8.6 patchlevel 114) (2008-12-17 rev 8388) [x86-java]
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>
>> 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.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
This topic is locked and can not be replied to.