Henry Rich wrote:
If my user profile runs, it seems to set PATHSEP which causes
the code at the top of the standalone app to return fast, with
the result that 'require' doesn't get nulled out and a later
require fails because a library is missing.
If I set -jprofile, the app will load, but ARGV is not set
and I have no way to pass parameter information into the
program.
ARGV should work with -jprofile, because it is injected by J executable before
running any script. Please add the following at the very beginning of your
standalone script to see if it works assuming you use j.exe.
11!:0 'pc ijx closeok;xywh 0 0 300 200'
11!:0 'cc e editijx ws_hscroll ws_vscroll es_nohidesel rightmove bottommove'
11!:0 'setfont e ',>(5=9!:12'') { '"Courier New" 12';'monospaced 12'
11!:0 'pas 0 0;pgroup jijx;pshow'
1!:2&2 ] 3!:0 ARGV
1!:2&2 $ ARGV
1!:2&2 ARGV
and try running
c:\j504\j.exe -jprofile yourscript.ijs
Please also note that standalone does not load the _j_ locale which is used by
IDE. PATHSEP_j_ may be an exception because it is defined by PM for you. Also
jpath and related folders such as ~binary ~temp will not work correctly, please
correct them if you code or some library refer to them.
As you might already know the option -jijx is used to hide ijx window (rather
than to display it), you don't need to concern it if you have already check the
build option in PM.
--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm