Yes, I could run my apps from the IDE window, but many times it is nice to
just have the app be a link on the screen. And distributed apps could be
run from the IDE as well, but it is nice that the IDE doesn't pop up
showing that the app is written in J. Make an app written in J look no
different than any other app.

When J is installed on a system it is nice not to have complete copies of J
included in each standalone app. Sure saves on disk space. Of course the
down side is that apps are written for a particular version of J and may
fail as happens with Java apps. In my case I am not building a super-duper
complex app. One I did in J6 simply gave a directory structure reporting
space used by files and subdirectories in each directory. Not much to it.
No need to go through the Project Manager. Just one ijs script. But I could
run it just like non-J apps.

What really mystifies me is that the wd 'ide hide' prevents the IDE from
appearing as long as the form is open, but then appears when the form ends.
I searched all the J libraries and the IDE appearing is not done with wd
'ide show'.

And in my browsing around I ran into a few things that were undocumented
and couldn't figure out what they did.


On Sun, Jul 20, 2014 at 1:22 PM, 'Pascal Jasmin' via Programming <
[email protected]> wrote:

> I assume you've already found the qt demo that describes show/hide
> behaviour.
>
> "I could put "exit 0" in a close event for
> the form, but that doesn't seem like a good way to solve the problem. "
>
> Its a good way if you have a main form that launches all others, and so
> can quit all other forms.
>
> If you don't have that architecture, formloader and formunloader methods
> could track a locale/global variable and then signal when its time to exit.
>
> Overall though, its unclear why showing the IDE "should be lava".  For
> instance the IDE could be used to launch extention code (other forms)
> around your app/forms, or the user could just do other J stuff afterwards.
>  If the issue is potential confusion about seeing the IDE, outputting to
> the console "MyFormName has closed... closing this window will exit
> MyProgName".
>
>
>
> ----- Original Message -----
> From: Don Guinn <[email protected]>
> To: Programming forum <[email protected]>
> Cc:
> Sent: Sunday, July 20, 2014 2:51:53 PM
> Subject: [Jprogramming] Building standalone app
>
> Trying to figure out how to prevent the ijx window from appearing for
> making standalone applications. I found an example in Wiki Guides/ J8
> Standalone. But the zip file of the project build for the application
> missing -(http://www.mcardle.wisc.edu/mprime/download/viewer-1.zip).
>
> I downloaded the installer of it for Windows and it ran; however, it is for
> an earlier version of J (5/14/2013) and browsing viewer.ijs is rather
> difficult and it crashes the current version of J.
>
> So I have a few questions.
>
> Obviously, what happened to that zip file?
>
> Is there a way to tell if the development environment is displayed? I can
> use (wd 'ide hide') to hide it and (wd 'ide show') to hide and show it. The
> viewer.ijs used a name "IDE" to tell, but that name is no longer defined.
>
> A test script below which runs a simple form does not show ijx until the
> form closes.
>
> The script _________________
>
> wd 'pc test closeok;pn "Test"'
>
> wd 'cc xx static; cn "Text here"'
>
> wd 'pshow'
>
>
> wd 'ide hide'
>
> End of Script __________________
>
>
> I went into Windows Associate a file type and told it that file type .ijs
> should run jqt.exe to run the above as standalone. If I remove the "ide
> hide" the IDE shows up immediately, so the hide helped. But then the IDE
> pops up when the form is closed. I could put "exit 0" in a close event for
> the form, but that doesn't seem like a good way to solve the problem. J6
> had an option that when the last window closed J closed. That doesn't seem
> to be J8 works.
>
> Next question:
> The viewer description also mentioned using "fixed" to help control the
> size of something.
>    cc editname edit;set editname fixed 60;
> It isn't in the current J.
>
> There is a new wd command and verb not documented - "smact". It simply runs
> the wd command with the argument "smact". It is not documented in "Driver
> Command Reference". What does it do? In the viewer.ijs script the verb
> "smact" was defined quite differently as a cd call.
>
> I am not trying to build apps for distribution and to run on all systems. I
> am trying to find a way to make standalone J apps to be used on a system
> with J8 already installed.
> ----------------------------------------------------------------------
> 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