>>  <<  Ndx  Usr  Pri  JfC  LJ  Phr  Dic  Rel  Voc  !:  wd  Help  User

Starting J - Details

profile sequence

JFE loads profile which in turn loads several other files to initialize your J session. Foreign 4!:3 returns script names in the order they were loaded. This can be a powerful tool in understanding the initialization process.

Start Jwd and see what scripts are loaded.
   >4!:3''
C:\Users\Eric\j602\bin\profile.ijs                  
C:\Users\Eric\j602\system\extras\util\boot.ijs      
C:\Users\Eric\j602\system\main\sysenv.ijs           
C:\Users\Eric\j602\system\main\stdlib.ijs           
C:\Users\Eric\j602\system\main\colib.ijs
C:\Users\Eric\j602\system\main\break.ijs            
C:\Users\Eric\j602\system\main\winlib.ijs           
...
...
C:\Users\Eric\j602-user\config\startup.ijs 
The last entry (startup.ijs) indicates that file exists and was the Edit|Configure|Startup file.

Start Jconsole with command line parameter arg.ijs and see what scripts are loaded.
   >4!:3''
C:\Users\Eric\j602\bin\profile.ijs
C:\Users\Eric\j602\system\extras\util\boot.ijs
C:\Users\Eric\j602\system\main\sysenv.ijs
C:\Users\Eric\j602\system\main\stdlib.ijs
C:\Users\Eric\j602\system\main\colib.ijs
C:\Users\Eric\j602\system\main\break.ijs
C:\Users\Eric\j602\system\main\conlib.ijs
C:\Users\Eric\j602\system\extras\util\jadecon.ijs
C:\Users\Eric\j602\system\extras\config\scripts.ijs
C:\Users\Eric\j602-user\config\startup_console.ijs
C:\Users\Eric\j602-user\projects\arg.ijs
The next to last entry (startup_console.ijs) indicates that file exists and is loaded as the console startup file. The last entry (arg.ijs) indicates that file was loaded as it was a command line parameter.

J Front End initialization sentence

JFE runs a first sentence that defines BINPATH_z_ and ARGV_z and performs other required initialization (such as loading J profile).

BINPATH_z_ is set as the full path to the J bin folder.

ARGV_z_ is set as list of boxed string parameters from the command line.

The load of a script is done with an unamed verb (3 : '0!:0 y') so that =. is local to the verb.

The sentence always ends with:
[ARGV_z_=:...[BINPATH_z_=:...

[A[B indicates this standard ending in the following examples.

Without -jprofile the first sentence has the form:
(3 : '0!:0 y')<BINPATH,'\profile.ijs'[A[B

With -jprofile F:
(3 : '0!:0 y')2{ARGV[A[B

Jwd with just -profile (load nothing and create default ijx):
11!:0'....create ijx '[A[B

Jconsole with just -jprofile:
i.0 0[A[B


>>  <<  Ndx  Usr  Pri  JfC  LJ  Phr  Dic  Rel  Voc  !:  wd  Help  User