Windows path issue with ringo

41 views
Skip to first unread message

Hanxue Lee

unread,
Jul 4, 2012, 7:23:17 PM7/4/12
to rin...@googlegroups.com
Hello there,


I am a beginner with RingoJS, and hope to be able to set it up to run on GAE. I have been trying to follow the screencast to install and use ringo-cometd and jetson. The packages install fine, with non-critical errors about unable to delete the temporary files from C:\%USERPROFILE%\Temp 

The files in the package exist in the folder:

E:\Dev\GAE\Ringo\ringojs-0.8\packages>dir ringo-cometd\app
 Directory of E:\Dev\GAE\Ringo\ringojs-0.8\packages\ringo-cometd\app
05/07/2012  07:02 AM    <DIR>          .
05/07/2012  07:02 AM    <DIR>          ..
05/07/2012  07:02 AM               239 actions.js
05/07/2012  07:02 AM             1,421 chatService.js
05/07/2012  07:02 AM    <DIR>          config
05/07/2012  07:02 AM               536 config.js
05/07/2012  07:02 AM               179 main.js
05/07/2012  07:02 AM               161 README.txt
05/07/2012  07:02 AM    <DIR>          skins
05/07/2012  07:02 AM    <DIR>          static
               5 File(s)          2,536 bytes
               5 Dir(s)  28,261,388,288 bytes free


When I try to run ringo, it concatenates my path to ~ringo\packages :

E:\Dev\GAE\Ringo\ringojs-0.8\packages>ringo ringo-cometd\app\main.js
java.io.FileNotFoundException: E:\Dev\GAE\Ringo\ringojs-0.8\packages\main.js


Entering the folder where main.js is contained and running ringo there does not help as well. Has anyone encountered path issues with Ringo on Windows, and how did you manage to resolve that?

Thank you in advance for your help. 


Best regards,
Hanxue

Darren Cruse

unread,
Jul 10, 2012, 4:09:05 PM7/10/12
to rin...@googlegroups.com
I'll take a stab.

I'm actually not sure why you're getting that error but I'll start by just saying you'll often see ringo apps started with simply "ringo main.js", not with the longer "ringo ringo-cometd\app\main.js" like you've done.

So my first question is have you tried cd'ing to the ringo-cometd\app directory and run with just "ringo main.js"?

I think that might be your only problem.   

Otherwise note that the current working directory is *not* part of Ringo's default module path, so if the above doesn't work the next thing to try is add e.g.  RINGO_MODULE_PATH=. to your environment (or add "-m ." to your ringo command).

The default Ringo module path is to look in $RINGO_HOME/modules and $RINGO_HOME/packages.

From the error you showed, it looks like ringo is trying to find the tail end of ringo-cometd\app\main.js - i.e. the main.js part - as a module.

Hope this helps (not sure if it will or not :)).
Reply all
Reply to author
Forward
0 new messages