- Right click on My Computer
- Click Properties
- Click the Advance tab
- Click on Environment Variables
A blog about real-world software engineering and development problems and solutions.
Monday, February 02, 2009
The system cannot find the path specified when executing jruby
If you get "The system cannot find the path specified" when trying to run jruby in Windows, you need to add JRUBY_HOME and JAVA_HOME to your environment variables. JRUBY_HOME and JAVA_HOME both need to point to the root folder of jruby and Java JDK, e.g.: C:\jruby-1.1.6\ and C:\Program Files\Java\jdk1.6.0_11. You need to also add %JAVA_HOME%\bin and %JRUBY_HOME%\bin to your PATH variable.
You can manage your environment variables by doing the following under Windows XP:
Subscribe to:
Post Comments (Atom)
2 comments:
last part should say jruby_home. Thank you. This helped me.
Corrected! Thank you!
Post a Comment