JRuby 1.2.0RC1 problem with spaces in path on Windows 
------------------------------------------------------

                 Key: JRUBY-3469
                 URL: http://jira.codehaus.org/browse/JRUBY-3469
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.2
         Environment: Windows NT, NetBeans 6.5, JRuby 1.2.0RC1
            Reporter: Scott J. Strmel
            Assignee: Thomas E Enebo
            Priority: Blocker


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.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

    http://xircles.codehaus.org/manage_email


Reply via email to