[Jslib] xpcshell

Eric Plaster plaster@visi.com
Wed, 23 Jan 2002 14:29:49 -0600


--------------010807040309060202090404
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

OK, maybe it's just been so long that I forgot how to do this, but I'm 
having some trouble running this...  Here is my output:


*plaster@neo:/usr/local/src/mozilla/dist/bin>* run-mozilla.sh xpcshell
*js>* 
load('/usr/local/src/rep/mozdev/jslib/libraries/jslib.js');                              



Welcome to jslib version 0.00

Global consts:

  JS_LIBRARY
  JS_LIB_FILE
  JS_LIB_PATH
  JS_LIB_VERSION
  JS_LIB_AUTHORS
  JS_LIB_BUILD
  JS_LIB_ABOUT
  JS_LIB_HOME.

Global variables:

  JS_LIB_DEBUG
  JS_LIB_ERROR




*********************
JS_LIB DEBUG IS ON
*********************


*js>* include('chrome://jslib/content/io/file.js');

-----======[ ERROR ]=====-----
ERROR: in jslib.js: include  chrome://jslib/content/io/file.js is not a 
valid path or is already loaded
Name:              undefined
Message:           Error opening input stream (invalid filename?)
Result:           
Location:         
NS_ERROR_NUMBER:   NS_ERROR_INVALID_ARG
------------------------------

-2147942487
*js>* ^c

*plaster@neo:/usr/local/src/mozilla/dist/bin>* ls chrome/jslib/io/
CVS  dir.js  dirUtils.js  file.js  filesystem.js  fileUtils.js  io.js  
rdf.js
*plaster@neo:/usr/local/src/mozilla/dist/bin> *

So what am I doing wrong?

-- 
Eric Plaster
Urban Rage Software <http://www.urbanrage.com>
Senior Software Engineer
RPG tools project
rpgtools@urbanrage.com
http://rpgtools.mozdev.org

*/ AD&D tools for the player and the DM/*


--------------010807040309060202090404
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
OK, maybe it's just been so long that I forgot how to do this, but I'm having
some trouble running this... &nbsp;Here is my output:<br>
<br>
<br>
<b>plaster@neo:/usr/local/src/mozilla/dist/bin&gt;</b> run-mozilla.sh xpcshell<br>
<b>js&gt;</b> load('/usr/local/src/rep/mozdev/jslib/libraries/jslib.js');&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<br>
<br>
Welcome to jslib version 0.00<br>
<br>
Global consts:<br>
<br>
&nbsp; JS_LIBRARY<br>
&nbsp; JS_LIB_FILE<br>
&nbsp; JS_LIB_PATH<br>
&nbsp; JS_LIB_VERSION<br>
&nbsp; JS_LIB_AUTHORS<br>
&nbsp; JS_LIB_BUILD<br>
&nbsp; JS_LIB_ABOUT<br>
&nbsp; JS_LIB_HOME.<br>
<br>
Global variables:<br>
<br>
&nbsp; JS_LIB_DEBUG<br>
&nbsp; JS_LIB_ERROR<br>
<br>
<br>
<br>
<br>
*********************<br>
JS_LIB DEBUG IS ON<br>
*********************<br>
<br>
<br>
<b>js&gt;</b> include('<a class="moz-txt-link-freetext" href="chrome://jslib/content/io/file.js">chrome://jslib/content/io/file.js</a>');<br>
<br>
-----======[ ERROR ]=====-----<br>
ERROR: in jslib.js: include&nbsp; <a class="moz-txt-link-freetext" href="chrome://jslib/content/io/file.js">chrome://jslib/content/io/file.js</a> is not a valid
path or is already loaded<br>
Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; undefined<br>
Message:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Error opening input stream (invalid filename?)<br>
Result:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
Location:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
NS_ERROR_NUMBER:&nbsp;&nbsp; NS_ERROR_INVALID_ARG<br>
------------------------------<br>
<br>
-2147942487<br>
<b>js&gt;</b> ^c<br>
<br>
<b>plaster@neo:/usr/local/src/mozilla/dist/bin&gt;</b> ls chrome/jslib/io/<br>
CVS&nbsp; dir.js&nbsp; dirUtils.js&nbsp; file.js&nbsp; filesystem.js&nbsp; fileUtils.js&nbsp; io.js&nbsp; rdf.js<br>
<b>plaster@neo:/usr/local/src/mozilla/dist/bin&gt; </b><br>
<br>
So what am I doing wrong?<br>
<br>
<div class="moz-signature">-- <br>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
  <tbody>
    <tr>
      <td valign="top">Eric Plaster<br>
      </td>
      <td valign="top" align="right"><a href="http://www.urbanrage.com" style="color: maroon; text-decoration: none;">
   Urban Rage Software</a><br>
      </td>
    </tr>
    <tr>
      <td valign="top"> Senior Software Engineer<br>
      </td>
      <td valign="top" align="right"> RPG tools project<br>
      </td>
    </tr>
    <tr>
      <td valign="top"> <a class="moz-txt-link-abbreviated" href="mailto:rpgtools@urbanrage.com">rpgtools@urbanrage.com</a><br>
      </td>
      <td valign="top" align="right"><a href="http://rpgtools.mozdev.org" style="color: maroon; text-decoration: none;">
   http://rpgtools.mozdev.org<br>
      </a></td>
    </tr>
  </tbody>
</table>
<div align="center"><font color="#999999"><b><i><font color="#666666"><small>
   AD&amp;D tools for the player and the DM</small></font></i></b></font></div>
</div>
</body>
</html>

--------------010807040309060202090404--