Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 183631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:09:01+00:00 2026-05-11T15:09:01+00:00

* Download JRuby 1.20. (zip file) * Extract the zip into C:\JRuby120 * Edit

  • 0
* Download JRuby 1.20. (zip file) * Extract the zip into C:\JRuby120 * Edit sytem 'environment variables': * Add JRUBY_HOME -> point it to C:\JRuby120 * Modify the PATH environment variable to point to C:\JRuby120\bin;  

After all this, I open up cmd.exe and type jruby

->’The system cannot find the path specified’

What did I do wrong?

I removed echo_off from C:\JRuby120\bin\jruby.bat, C:\JRuby120\bin_jrubyvars.bat and C:\JRuby120\bin_jrubyvmopts.bat and invoked jruby from cmd.exe. This was the output:

C:\>rem ---------------------------------------------------------------------------   C:\>rem jruby.bat - Start Script for the JRuby Interpreter   C:\>rem  C:\>rem for info on environment variables, see internal batch script _jrubyvars.bat   C:\>setlocal  C:\>rem Sometimes, when jruby.bat is being invoked from another BAT file,   C:\>rem C:\JRuby120\bin\ is incorrect and points to the current dir, not to JRuby's bin dir,   C:\>rem so we look on the PATH in such cases.   C:\>IF EXIST 'C:\JRuby120\bin\_jrubyvars.bat' (set FULL_PATH=C:\JRuby120\bin\ )  ELSE (set FULL_PATH=C:\JRuby120\bin\ )   C:\>call 'C:\JRuby120\bin\_jrubyvars.bat'    C:\>rem Environment Variable Prequisites:   C:\>rem  C:\>rem   JRUBY_OPTS    (Optional) Default JRuby command line args.   C:\>rem  C:\>rem   JAVA_HOME     Must point at your Java Development Kit installation.   C:\>rem  C:\>rem ----- Save Environment Variables That May Change --------------------------   C:\>set _CLASSPATH=.;   C:\>set _CP=   C:\>set _JRUBY_CP=   C:\>set JRUBY_BAT_ERROR=0   C:\>rem ----- Verify and Set Required Environment Variables -----------------------   C:\>if not 'C:\Program Files\Java\jdk1.6.0_11\bin' == '' goto gotJava   C:\>set JRUBY_HOME=C:\JRuby120\bin\..   C:\>rem ----- Prepare Appropriate Java Execution Commands -------------------------   C:\>if not '' == '' goto gotCommand   C:\>set _JAVA_COMMAND=   C:\>set JAVA_COMMAND=java   C:\>if not 'Windows_NT' == 'Windows_NT' goto noTitle   C:\>rem set _STARTJAVA=start 'JRuby' 'C:\Program Files\Java\jdk1.6.0_11\bin\bin\java'   C:\>set _STARTJAVA=C:\Program Files\Java\jdk1.6.0_11\bin\bin\java   C:\>goto gotTitle   C:\>rem ----- Set up the VM options   C:\>call 'C:\JRuby120\bin\_jrubyvmopts'    C:\>set _MEM=-Xmx500m   C:\>if not defined JAVA_MEM goto memOptDone   C:\>set _STK=-Xss1024k   C:\>if not defined JAVA_STACK goto stackOptDone   C:\>set _VM_OPTS=   C:\>set _RUBY_OPTS=   C:\>set _DFLT_VM_OPTS=   C:\>set _JAVA_VM=-client   C:\>set SAFE_JAVA_HOME=C:\Program Files\Java\jdk1.6.0_11\bin   C:\>set SAFE_JAVA_HOME=C:\Program Files\Java\jdk1.6.0_11\bin   C:\>rem  C:\>rem Can you believe I'm rewriting batch arg processing in batch files because batch   C:\>rem file arg processing sucks so bad? Can you believe this is even possible?   C:\>rem http://support.microsoft.com/kb/71247   C:\>rem Escape any quotes. Use _S for ', _D for ', and _U to escape _ itself.   C:\>rem We have to escape _ itself, otherwise file names with _S and _D   C:\>rem will be converted to to wrong ones, when we un-escape. See JRUBY-2821.   C:\>set _ARGS=   C:\>if not defined _ARGS goto vmoptsDone   C:\>set _VM_OPTS= -client -Xmx500m -Xss1024k    C:\>set _DFLT_VM_OPTS=   C:\>set _MEM=   C:\>set _STK=   C:\>set _ARGS=   C:\>set _VAL=   C:\>set _CMP=   C:\>set _CMP1=   C:\>set _JAVA_VM=   C:\>set _RUNJAVA='C:\Program Files\Java\jdk1.6.0_11\bin\bin\java'   C:\>rem ----- Set Up The Boot Classpath ----------------------------------------   C:\>for %i in ('C:\JRuby120\bin\..\lib\jruby*.jar') do @call :setjrubycp %i   C:\>if not '' == '' goto addjrubycp   C:\>set JRUBY_CP=C:\JRuby120\bin\..\lib\jruby.jar   C:\>goto :EOF   C:\>for %i in ('C:\JRuby120\bin\..\lib\bsf*.jar') do @call :setjrubycp %i   C:\>if not 'C:\JRuby120\bin\..\lib\jruby.jar' == '' goto addjrubycp   C:\>set JRUBY_CP=C:\JRuby120\bin\..\lib\jruby.jar;C:\JRuby120\bin\..\lib\bsf.jar   C:\>goto :EOF   C:\>rem ----- Set Up The System Classpath ----------------------------------------   C:\>for %i in ('C:\JRuby120\bin\..\lib\*.jar') do @call :setcp %i   C:\>if not '' == '' goto add   C:\>set CP=C:\JRuby120\bin\..\lib\bsf.jar   C:\>goto :EOF   C:\>if not 'C:\JRuby120\bin\..\lib\bsf.jar' == '' goto add   C:\>set CP=C:\JRuby120\bin\..\lib\bsf.jar;C:\JRuby120\bin\..\lib\jruby.jar   C:\>goto :EOF   C:\>if not 'C:\JRuby120\bin\..\lib\bsf.jar;C:\JRuby120\bin\..\lib\jruby.jar' == '' goto add   C:\>set CP=C:\JRuby120\bin\..\lib\bsf.jar;C:\JRuby120\bin\..\lib\jruby.jar;C:\JRuby120\bin\..\lib\profile.jar   C:\>goto :EOF   C:\>goto :EOF   C:\>if 0 == 0 'C:\Program Files\Java\jdk1.6.0_11\bin\bin\java'  -client -Xmx500m -Xss1024k  -Xbootclasspath/a:'C:\JRuby120\bin\..\lib\jruby.jar;C:\JRuby120\bin\..\lib\bsf.jar' -classpath 'C:\JRuby120\bin\..\lib\bsf.jar;C:\JRuby120\bin\..\lib\jruby.jar;C:\JRuby120\bin\..\lib\profile.jar;.;' -Djruby.home='C:\JRuby120\bin\..' -Djruby.lib='C:\JRuby120\bin\..\lib' -Djruby.shell='cmd.exe' -Djruby.script=jruby.bat org.jruby.Main     C:\>set E=3   C:\>call 'C:\JRuby120\bin\_jrubycleanup'  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:09:02+00:00Added an answer on May 11, 2026 at 3:09 pm

    Well, that’s what you’re supposed to do. Go to the command line and enter echo %PATH% and make sure your jruby bin directory is on there.


    EDIT:

    Ignore the above, that’s not the error you’d get for jruby not being in the path. The ‘The system cannot find the path specified’ error is because a path doesn’t exist, most likely it’s the path to your Java JDK. Run echo %JAVA_HOME%. Make sure that path is correct. If you don’t have the Java JDK, you can download it here.


    EDIT 2:

    Having seen the output of jruby.bat, the problem appears to either be in finding _jrubyvars.bat, or finding something called within it. The only thing it calls is _jrubyvmopts.bat, which doesn’t call anything else. Make sure that C:\JRuby120\bin\_jrubyvars.bat and C:\JRuby120\bin\_jrubyvmopts.bat exist, although I can’t see a reason why they shouldn’t. If they both exist, then the next step would be to remove the @echo off lines from each of them and see if we can find exactly where the bad call is taking place.


    EDIT 3:

    Having seen all that output, it looks like JAVA_HOME is set to ‘C:\Program Files\Java\jdk1.6.0_11\bin\‘ JAVA_HOME should be the parent directory: C:\Program Files\Java\jdk1.6.0_11\‘. Give that a try and cross your fingers this time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 211k
  • Answers 211k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The SQL clause like '%...%' is the single most destructive… May 12, 2026 at 10:14 pm
  • Editorial Team
    Editorial Team added an answer We will need some code, to see exactly what is… May 12, 2026 at 10:14 pm
  • Editorial Team
    Editorial Team added an answer I'm not sure you can get it from just en...… May 12, 2026 at 10:14 pm

Related Questions

I know there is ongoing work for in this regards but what is the
I'm looking for an easy way to generate previews for labels generated as pdfs.
download-dir: request-dir Print [downloading VStudio2008Express.iso ... ] url: http://go.microsoft.com/fwlink/?LinkId=104679 file-save: to-rebol-file rejoin [download-dir VStudio2008Express.iso]
I download an image from an URL asynchronously using WebRequest this way: public void

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.