It may not apply in your example, but cd is sensitive to paths with spaces,
because the space is what delimits the path from the method

NB. no spaces, works

C:\Users\Joe Bogner\j64-804>bin\jconsole.exe
   F=:'c:\Progra~1\Emscripten\python\2.7.5.3_64bit\python27.dll'
   (F,' Py_Initialize n')cd ''
+-+
|0|
+-+

NB. with spaces

   F=:'c:\Program Files\Emscripten\python\2.7.5.3_64bit\python27.dll'
   (F,' Py_Initialize n')cd ''
|domain error: cd
|   (F,' Py_Initialize n')    cd''

  1!:0<F
+------------+------------------+-------+---+------+
|python27.dll|2014 11 27 18 56 4|3003392|rw-|-----a|
+------------+------------------+-------+---+------+

Quoting the path works fine

   F=:'"c:\Program Files\Emscripten\python\2.7.5.3_64bit\python27.dll"'
   (F,' Py_Initialize n')cd ''
+-+
|0|
+-+



On Wed, Sep 30, 2015 at 4:50 PM, Raul Miller <[email protected]> wrote:

> To find the dll lab, you'll need to use j602 from the archived
> versions of the downloads.  http://www.jsoftware.com/archive.htm (and
> you might need to install the packages - I forget if that is necessary
> for the lab).
>
> No one has cared enough about the dll lab, yet, to support it for j804.
>
> Meanwhile, the 'dll' script is included in the system scripts (always
> loaded) in j804.
>
> In other words, open 'dll' would get you the dll.ijs script in j602
> but in j804 it does nothing. More specifically, in j602, getscripts_j_
> 'dll' would get you the same result as jpath '~system/main/dll.ijs'
> but in j804, getscripts_j_ gets you the empty string.
>
> Put differently, in j804, (4!:4 <'cd') { 4!:3 '' gets you the same
> result as jpath '~system/main/stdlib.ijs'
>
> To see this on the machine I am currently using:
>
>    require 'misc/miscutils/utils'
>    whichscript 'cd'
> ┌────────────────────────────────────────────┐
> │/Applications/j64-804/system/main/stdlib.ijs│
> └────────────────────────────────────────────┘
>
> I hope this helps?
>
> Thanks,
>
> --
> Raul
>
> On Wed, Sep 30, 2015 at 4:06 PM, David Lambert <[email protected]>
> wrote:
> > Thank you, I'll try these.  Was unable to find the dll lab, didn't
> > investigate the 15!: foreign adverbs, didn't think to try 'c'names_z_ 3 ,
> > and otherwise had no idea to or from where require'dll', didn't seem to
> be
> > in the j locale nouns, didn't try
> > find jinstallationdirectory -exec grep --silent cd {} \; -print
> >
> >>Raul Miller rauldmiller at gmail.com
> >>Wed Sep 30 02:48:16 UTC 2015
> >>Previous message: [Jprogramming] dll domain error
> >>Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> >>You probably should use cderx'' or cder'' immediately after getting
> >>the domain error.
> >>
> >>http://www.jsoftware.com/help/user/cd_domain_error.htm
> >>
> >>also mentioned briefly in
> >>http://www.jsoftware.com/help/user/lib_dll.htm#cderx
> >>
> >>Hopefully that will help...
> >>
> >>--
> >>Raul
> >>
> >>
> >>On Tue, Sep 29, 2015 at 10:33 PM, David Lambert <b49p23tivg at gmail.com
> >
> >> wrote:
> >>> I've got a python shared library on window & linux systems. What might
> >>> cause
> >>> the domain error on Windows?  The dll I actually need to use is not
> >>> available to me on the linux system, this is a failed test.
> >>>
> >>>    JVERSION
> >>> Engine: j803/2014-10-19-11:11:11
> >>> Library: 8.04.11
> >>> Platform: Linux 64
> >>> Installer: unknown
> >>> InstallPath: /usr/share/j/8.0.4
> >>>
> >>> '/usr/lib/python3.4/config-3.4m-x86_64-linux-gnu/libpython3.4.so
> >>> Py_Initialize n'cd''
> >>> +-+
> >>> |0|
> >>> +-+
> >>>
> >>> -------------------------------------------------
> >>>
> >>>    JVERSION
> >>>
> >>> Engine: j803/2014-10-19-11:11:11
> >>>
> >>> Library: 8.03.13
> >>>
> >>> Platform: Win 64
> >>>
> >>> Installer: J803 install
> >>>
> >>> InstallPath: c:/program files/j64-803
> >>>
> >>>    boxdraw_j_ 1
> >>>
> >>>    F=:'c:\Users\mat45899\Documents\programs\python35.dll' NB. 64 bit
> >>>
> >>>    1!:0<F
> >>>
> >>> +------------+-----------------+-------+---+------+
> >>>
> >>> |python35.dll|2015 9 13 2 28 18|3923736|rw-|-----a|
> >>>
> >>> +------------+-----------------+-------+---+------+
> >>>
> >>>    (F,' Py_Initialize n')cd''
> >>>
> >>> |domain error: cd
> >>>
> >>> |   (F,' Py_Initialize n')    cd''
> >>>
> >>> 'c:/Users/mat45899/Documents/programs/python35.dll Py_Initialize n'cd''
> >>>
> >>> |domain error: cd
> >>>
> >>> | 'c:/Users/mat45899/Documents/programs/python35.dll Py_Initialize n'
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to