Errors running jruby 1.4.0rc1 on windows

Hey all,
I used the windows installer to grab jruby 1.4 rc, and I get this error
when
I try to use the jruby command for just about anything.

\jruby-1.4.0RC1\bin) was unexpected at this time

Any ideas?

Looks like there are plenty of issues with 1.4.0RC1 on Windows. See

http://jira.codehaus.org/browse/JRUBY-4042
http://jira.codehaus.org/browse/JRUBY-4045
http://jira.codehaus.org/browse/JRUBY-3159

If you think this is a separate issue, you should open a new ticket.

Hi,

I see a variation of this error message when JRuby 1.4.0rc1 is used on
Windows via the RubyMine IDE, when performing things like the “spec”
command.

I am also finding that I have obviously coded for the specific “non”
Ruby standard methods/returns from JRuby 1.3.1, and since JRuby 1.4 is
more Ruby standards compliant, it is causing many of my tests to
fail. :frowning:

This is a good thing, apart from having to double check with Ruby
1.8.7 to make sure I do not need to raise a bug against JRuby 1.4.
(Most of these differences have come out of YAML, and the rewrite
being more standards compliant as well as faster).

Regards
Matthew W.

On Sun, Oct 4, 2009 at 8:29 AM, Aaron McLeod [email protected]
wrote:

Hey all,
I used the windows installer to grab jruby 1.4 rc, and I get this error when
I try to use the jruby command for just about anything.
\jruby-1.4.0RC1\bin) was unexpected at this time

Any ideas?

Can you provide a few things to help us isolate this:

  1. Windows version?
  2. Did you change any default behavior during the installer (like
    change install location)?
  3. What is the install location?
  4. Did you use installer+jre or just jre?
  5. Which commands work (if any)? If some do then which commands don’t
    work?

-Tom


blog: http://blog.enebo.com twitter: tom_enebo
mail: [email protected]


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This would be in windows 7 rc.

I used the default install path, which it went into C:\Program Files
(x86)\jruby-1.4.0RC1\

I used just the jruby installer, no jre, as I already have that
installed.

Every command I have tried seems to have that problem. Atleast
anything with using the jruby command, as well as jirb. I submitted a
bug for this last night at the jruby codehaus:
http://jira.codehaus.org/browse/JRUBY-4051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=193494#action_193494

On 10/5/09, Thomas E Enebo [email protected] wrote:

  1. Windows version?
    mail: [email protected]

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Aaron McLeod
http://agmprojects.com


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi folks,

I tested on my Vista x64 box, and the error is the same, so I can
confirm this issue. The main problem is due to spaces in the
installation path.

One possible fix is to change jruby.bat, the line with IF EXIST … to:

IF EXIST “%~dp0_jrubyvars.bat” (set “FULL_PATH=%~dp0”) ELSE (set
“FULL_PATH=%~dp$PATH:0”)

(basically, I’ve added quotes to around FULL_PATH). With such change,
I can run jruby.

Thanks,
–Vladimir

On Sun, Oct 4, 2009 at 3:29 PM, Aaron McLeod [email protected]
wrote:

Hey all,
I used the windows installer to grab jruby 1.4 rc, and I get this error when
I try to use the jruby command for just about anything.
\jruby-1.4.0RC1\bin) was unexpected at this time

Any ideas?

Aaron McLeod
http://agmprojects.com


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Small clarification.

On Tue, Oct 6, 2009 at 5:05 PM, Vladimir S. [email protected]
wrote:

The main problem is due to spaces in the
installation path.

Actually, the problem this time is due to present brackets – ().
They cause syntax error.

Thanks,
–Vladimr


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email