💾 Archived View for blitter.com › apl-books › APLSE › www.sigapl.org › Archives › waterloo_archive ›… captured on 2022-07-17 at 03:52:09.
-=-=-=-=-=-=-
From owner-jsoftware@lists.interlog.com Fri Jul 2 15:20:45 1999 Date: Fri, 02 Jul 1999 15:14:00 -0400 From: Murray Eisenberg <murray@math.umass.edu> Organization: Mathematics & Statistics, Univ. of Mass./Amherst Subject: Re: Jforum: J403 CDROMs References: <001c01beab87$6f23bba0$150114d1@Pcdburke> Mine just arrived yesterday. Nice physical packaging -- avoiding the usual situation of opening a mailer only to find a cracked jewel box -- but perhaps "J in a Box" is no longer a correct description! Chris Burke wrote: > > The J403 CDROMS will likely not be shipped until Jun 19th, so Pro > users may want to download the system first. -- Murray Eisenberg murray@math.umass.edu Mathematics & Statistics Dept. phone 413 549-1020 (H) Univ. of Massachusetts 413 545-2859 (W) Amherst, MA 01003-4515 -------------------------------------------------------------------------------- J Forum: for information about this list, see http://www.jsoftware.com/forum.htm From owner-jsoftware@lists.interlog.com Fri Jul 2 23:57:24 1999 Date: Fri, 02 Jul 1999 23:55:47 -0400 From: Brian Bambrough <b.bambrough@worldnet.att.net> Subject: Jforum: Problems using Project Manager I'm having difficulty creating a runtime module for a system I'm developing. Below are two test scripts that give me the same kind of difficulties. The important (to me) features of these scripts are: - the script, test1, is loaded into it's own locale, test1 - test1 uses wdview, a typical j utility What I am trying to do is to build a runtime module to run on a system that doesn't have J loaded on it. Attempt 1: Here's what I did in Project Manager, on my desktop computer: Add to source files: test.ijs, test1.ijs Open project tab: add target file test.ijr Click on build. Build options are to include: project source project libraries standard libraries Close J At the DOS prompt enter c:\j403b\j.exe /rt c:\j403b\temp\test.ijr The test system runs fine. Copy j.exe, j.dll and test.ijr to directory c:\test on my laptop computer, which doesn't have j403b on it. Enter j /rt c:\test\test.ijr Get an error message "file not found: c:\j403b\temp\test1.ijs" Fair enough, I've hard coded a directory that doesn't exist. Question: How can I avoid hard coding the directory for test1.ijs in the first line of test.ijs? Attempt 2: I changed the first line of test.ijs to 'test1' load 'c:\test\test1', on the desktop computer, and rebuilt test.ijr. The laptop still couldn't find test1.ijs. Question: Why wasn't test1.ijs included in test.ijr by the Project Manager? I copied test1.ijs to the c:\test directory on the laptop. When I ran the runtime I got the message: file not found: c:\j403b\system\classes\view\jview.ijs Attempt 3: I went back to the desktop, entered Project Manager, and told it to include jview in the required files. I rebuilt test.ijr, copied it to the laptop and got the same error message. Questions: How can I get the test system to work using Project Manager? Is there a way to build test.ijr, with all needed files inside test.ijr (test1 and any other required files) without using Project Manager. Anyone who can give me step by step instructions to do this will earn my eternal gratitude. In the commercial system, I need verbs from stdlib.ijs. It seems that Project Manager doesn't have any way to include it in the .ijr file. I had to include it in the main script as: 'z' load 'winlib.ijs'. Is there a better way to do this? Script test.ijs -------------------------------------------- 'test1' load 'c:\j403b\temp\test1' TEST=: 0 : 0 pc test; xywh 132 67 57 11;cc btnTest1 button;cn "Display text window"; pas 6 6;pcenter; rem form end; ) test_run=: 3 : 0 wd TEST wd 'pshow;' ) test_close=: 3 : 0 wd'pclose' ) test_btnTest1_button=: 3 : 0 test1_run_test1_'' ) test_run'' Script test1.ijs -------------------------------------------- TEST1=: 0 : 0 pc test1; xywh 53 41 34 11;cc btnWiew button;cn "Show text"; pas 6 6;pcenter; rem form end; ) test1_run=: 3 : 0 wd TEST1 wd 'pshow;' ) test1_close=: 3 : 0 wd'pclose' ) test1_btnWiew_button=: 3 : 0 wdview 'Sample text',LF,LF,'for viewing' ) -------------------------------------------------------------------------------- J Forum: for information about this list, see http://www.jsoftware.com/forum.htm From owner-jsoftware@lists.interlog.com Sat Jul 3 02:21:51 1999 Date: Sat, 03 Jul 1999 08:56:56 +0300 From: Anssi Seppala <anssi.seppala@enease.fi> Subject: Re: Jforum: Problems using Project Manager In-Reply-To: <377D89C3.D71AD5BD@worldnet.att.net> My PM works fine. In Build options I have checked in Include files: Project source, project libraries and standard libraries. Anssi At 23:55 2.7.1999 -0400, you wrote: >I'm having difficulty creating a runtime module for a system I'm >developing. -------------------------------------------------------------------------------- J Forum: for information about this list, see http://www.jsoftware.com/forum.htm From owner-jsoftware@lists.interlog.com Sat Jul 3 06:20:46 1999 From: "Chris Burke" <cdburke@interlog.com> References: <377D89C3.D71AD5BD@worldnet.att.net> Subject: Re: Jforum: Problems using Project Manager Date: Sat, 3 Jul 1999 06:20:32 -0400 charset="iso-8859-1" Do not build an ijr file before you know that the corresponding ijs file works! It is essentially impossible to debug an ijr file. You cannot read it, and if it fails, you get no J session. So start off by building an ijs file and testing that. When you are sure it runs correctly, then build the ijr file. To find out what PM is doing when it builds a script, read the target ijs file, which can be opened from the Project tab of PM. When experimenting with PM, you may find it useful to view the target ijs file with an external editor. This makes it easy to experiment with different build options, build the target, then switch to the editor and view it. ----- Original Message ----- From: Brian Bambrough <b.bambrough@worldnet.att.net> Sent: Friday, July 02, 1999 11:55 PM Subject: Jforum: Problems using Project Manager > I'm having difficulty creating a runtime module for a system I'm > developing. Below are two test scripts that give me the same kind of > difficulties. The important (to me) features of these scripts are: -------------------------------------------------------------------------------- J Forum: for information about this list, see http://www.jsoftware.com/forum.htm From owner-jsoftware@lists.interlog.com Sat Jul 3 13:15:01 1999 From: "Seymour Glass" <glasss@mindspring.com> Subject: RE: Jforum: MAPI/rtn code 11 Date: Sat, 3 Jul 1999 12:46:09 -0400 charset="iso-8859-1" In-Reply-To: <89FE544F2452D21190A50060B0684BF3899D24@szrh00305.tszrh.csfb.com> Importance: Normal The return codes from sendmail (which I guess you have aliased to send) are the ones returned by the Windows DLL. The MAPI return codes are documented in the Windows file 'mapi.h' in MSDN. Return code 11 is MAPI_E_ATTACHMENT_NOT_FOUND, with no further description. Henry Rich > -----Original Message----- > From: owner-jsoftware@lists.interlog.com > [mailto:owner-jsoftware@lists.interlog.com]On Behalf Of Ondrus, Milan > Sent: Wednesday, June 30, 1999 05:42 > To: 'Jforum' > Subject: Jforum: MAPI/rtn code 11 > > > > does anybody know what this returncode 11 means that comes from > > returncode =. sess send parameterlist (script mapi.ijs) > > its a dll return code but I could not find the meaning in the > documentation. > This code 11 I get sometimes if I send out mails containing an > attachment - and the mail is then of course not > sent. > > /Milan Ondrus > > > > > > ------------------------------------------------------------------ > -------------- > J Forum: for information about this list, see > http://www.jsoftware.com/forum.htm > -------------------------------------------------------------------------------- J Forum: for information about this list, see http://www.jsoftware.com/forum.htm From owner-jsoftware@lists.interlog.com Sat Jul 3 14:34:07 1999 Date: Sat, 03 Jul 1999 14:31:56 -0400 From: Brian Bambrough <b.bambrough@worldnet.att.net> Subject: Re: Jforum: Problems using Project Manager References: <377D89C3.D71AD5BD@worldnet.att.net> <002201bec53d$bf7bef80$1b0114d1@Pcdburke> Chris and Anssi; Thanks for taking the time to respond. However, I am still having problems. Here is a very specific question: how do I preserve locales when I prepare a file with Table Manager? Here are two scripts. test1 is in the base locale, test2 is in the test2 locale. They each set a global variable, text. When I run test1, text is handled correctly. Now, I use Table Manager to create a single script test.ijs. I load test1 and test2 as source files. Table Manager creates one script, test, by gluing the two scripts together. When I run test everything runs in the base locale and there is only one text. ------------------------------------------------------- 'test2' load 'c:\test1\test2.ijs' text=:'Script test1' TEST1=: 0 : 0 pc test1; xywh 34 21 86 11;cc edtText edit ws_border es_autohscroll; xywh 35 4 59 11;cc btnShowtest2 button;cn "Show test2"; pas 6 6;pcenter; rem form end; ) test1_run=: 3 : 0 wd TEST1 wd 'set edtText "',text,'"' wd 'pshow;' ) test1_close=: 3 : 0 wd'pclose' ) test1_btnShowtest2_button=: 3 : 0 test2_run_test2_'' ) ------------------------------------------------------- test1_run'' text=:'Script test2' TEST2=: 0 : 0 pc test2; menupop "File"; menu new "&New" "" "" ""; menu open "&Open" "" "" ""; menusep ; menu exit "&Exit" "" "" ""; menupopz; xywh 67 23 76 11;cc edtText edit ws_border es_autohscroll; pas 6 6;pcenter; rem form end; ) test2_run=: 3 : 0 wd TEST2 wd 'set edtText "',text,'"' wd 'pshow;' ) test2_close=: 3 : 0 wd'pclose' wd 'psel test1' wd 'set edtText "',text_base_,'"' ) test2_cancel_button=: 3 : 0 test2_close'' ) -------------------------------------------------------------------------------- J Forum: for information about this list, see http://www.jsoftware.com/forum.htm From owner-jsoftware@lists.interlog.com Sat Jul 3 16:49:05 1999 From: "Chris Burke" <cdburke@interlog.com> References: <377D89C3.D71AD5BD@worldnet.att.net> <002201bec53d$bf7bef80$1b0114d1@Pcdburke> <377E571C.37E7EE2@worldnet.att.net> Subject: Re: Jforum: Problems using Project Manager Date: Sat, 3 Jul 1999 16:49:11 -0400 charset="iso-8859-1" 1. You could add a "cocurrent" (or "coclass") statement at the top of the test2 script, i.e. add: cocurrent 'test2' This changes the locale into which subsequent definitions will be loaded. Since the single script has test1 first, this gets loaded into base, while test2 will be loaded into test2. In this case, you would not include the line: > 'test2' load 'c:\test1\test2.ijs' 2. In general, I prefer to have each project loaded into a single locale (which can be set in the Project|Build Options dialog). An app that loads into 2 locales would then consist of 2 projects, and 2 target scripts. You would then have to ensure both get loaded, or have some way of running them together for the final build. Note that for complex builds you can add a pre or post processor, that could, for example, run the target scripts together into a single one, so you dont have to do this step manually. > Here is a very specific question: how do I preserve locales when I > prepare a file with Table Manager? > > Here are two scripts. test1 is in the base locale, test2 is in the > test2 locale. They each set a global variable, text. When I run > test1, text is handled correctly. > > Now, I use Table Manager to create a single script test.ijs. I load > test1 and test2 as source files. Table Manager creates one script, > test, by gluing the two scripts together. When I run test everything > runs in the base locale and there is only one text. > > ------------------------------------------------------- > > 'test2' load 'c:\test1\test2.ijs' > > text=:'Script test1' -------------------------------------------------------------------------------- J Forum: for information about this list, see http://www.jsoftware.com/forum.htm From owner-jsoftware@lists.interlog.com Sat Jul 3 17:02:08 1999 Date: Sun, 04 Jul 1999 00:01:25 +0300 From: Anssi Seppala <anssi.seppala@enease.fi> Subject: Re: Jforum: Problems using Project Manager In-Reply-To: <377E571C.37E7EE2@worldnet.att.net> References: <377D89C3.D71AD5BD@worldnet.att.net> <002201bec53d$bf7bef80$1b0114d1@Pcdburke> I have a convention to include all definitions to one locale in one script. The first statement of a script is cocurrent 'mylocale' NB. definitions to mylocale or cocurrent 'base' NB. definitions to base locale Anssi At 14:31 3.7.1999 -0400, you wrote: >Here is a very specific question: how do I preserve locales when I >prepare a file with Table Manager? -------------------------------------------------------------------------------- J Forum: for information about this list, see http://www.jsoftware.com/forum.htm From owner-jsoftware@lists.interlog.com Sun Jul 4 03:54:22 1999 Date: Sun, 04 Jul 1999 10:42:11 +0300 From: Anssi Seppala <anssi.seppala@enease.fi> Subject: Re: Jforum: Problems using Project Manager In-Reply-To: <377EDB34.47F8586F@worldnet.att.net> References: <377D89C3.D71AD5BD@worldnet.att.net> <002201bec53d$bf7bef80$1b0114d1@Pcdburke> <377E571C.37E7EE2@worldnet.att.net> <001301bec595$a0f8a000$480114d1@Pcdburke> Select jview from the library and build then the project. Anssi At 23:55 3.7.1999 -0400, you wrote: >I have one more problem: In the test1 script I added a line to use >wdview. This works fine in the J environment and also works when I >invoke it as: j /rt c:\test1\test.ijs. However, when I try to do the >same thing on my laptop, which doesn't have j403b loaded, I have a >problem. -------------------------------------------------------------------------------- J Forum: for information about this list, see http://www.jsoftware.com/forum.htm From owner-jsoftware@lists.interlog.com Sun Jul 4 03:54:33 1999 Date: Sun, 04 Jul 1999 10:51:49 +0300 From: Anssi Seppala <anssi.seppala@enease.fi> Subject: Jforum: Complex builds with PM In-Reply-To: <001301bec595$a0f8a000$480114d1@Pcdburke> References: <377D89C3.D71AD5BD@worldnet.att.net> <002201bec53d$bf7bef80$1b0114d1@Pcdburke> <377E571C.37E7EE2@worldnet.att.net> Chris, can you give an example of a pre- or postprocessor? I do not fully understand the idea. I combine two projects by including the target of the first project as a source to the other project. In general I try to separate calculations from GUI. I keep a calculation library as one project and GUI as a other project. The target of the calculation libary is source to the GUI project and the target of the GUI project is the final application script. Anssi At 16:49 3.7.1999 -0400 Chris wrote: >Note that for complex builds you can add a pre or post processor, that >could, for example, run the target scripts together into a single one, so >you dont have to do this step manually. -------------------------------------------------------------------------------- J Forum: for information about this list, see http://www.jsoftware.com/forum.htm From owner-jsoftware@lists.interlog.com Sun Jul 4 07:44:48 1999 From: "Chris Burke" <cdburke@interlog.com> References: <377D89C3.D71AD5BD@worldnet.att.net> <002201bec53d$bf7bef80$1b0114d1@Pcdburke> <377E571C.37E7EE2@worldnet.att.net> <001301bec595$a0f8a000$480114d1@Pcdburke> <377EDB34.47F8586F@worldnet.att.net> Subject: Re: Jforum: Problems using Project Manager Date: Sun, 4 Jul 1999 07:41:55 -0400 charset="iso-8859-1" ----- Original Message ----- From: Brian Bambrough <b.bambrough@worldnet.att.net> Sent: Saturday, July 03, 1999 11:55 PM Subject: Re: Jforum: Problems using Project Manager > Definite progress is being made. Chris' and Anssi's suggestion to use > cocurrent worked fine. It seemed to me that I would want test1_run'' > to be the last line to execute, so I put the scripts into Project > Manager in the order test2, test1. Alternatively, take test1_run'' out of the scripts, and enter it in the "Append to file:" edit in Build Options. > I have one more problem: In the test1 script I added a line to use > wdview. This works fine in the J environment and also works when I > invoke it as: j /rt c:\test1\test.ijs. However, when I try to do the > same thing on my laptop, which doesn't have j403b loaded, I have a > problem. > ... > The culprit seems to be lines that the Project Manager adds after all > the included J scripts and before the test2 script. One of these > lines is 3586 (!) characters long and starts: > > PUBLIC_j_=:67 3