JRuby 1.2.0RC1 problem with spaces in path on Windows

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-spaces-in-path-on-Windows-tp22355676p22355676.html
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

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

Unfortunately I am bound to the windows environment due to work
constraints.

The Blocker Bug is JRUBY-3469

Thanks

Charles Oliver N. 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