In the Python world, there are a few options to make exe files. One of the most popular is py2exe.
http://www.py2exe.org/ What it does is bundling a exe file with the original script included as byte-compiled, along with the python dll file, which is called by the exe file. (http://www.py2exe.org/index.cgi/FAQ) Or you could simply embed python in the original code included as a constant string in a simple C code. Maybe J could take this approach to make exe files. 2006/9/29, Björn Helgason <[EMAIL PROTECTED]>:
I have been telling people about APL/J since 1972 One of the key questions I get after I give a demo is "Can I make an executable file?" I have never been able to answer that question with a "Yes you can" I know I can create a Pif file I know I can create a shell script - In Linux - and make it executable That does not really give me the right to say "Yes you can"? I can answer "Yes you can make a script which calls J and passes to it a script and bla bla bla" I would love to have a utility in J that allows me to create a file like this: a) 'j -jijx system\examples\graphics\plot\plotdemo.ijs' fwrite 'c:\j601\plot.bat' Or better still: b) 'j -jijx system\examples\graphics\plot\plotdemo.ijs' fwrite 'c:\j601\plot.exe' It is possible that I am being naive It has been possible to write the line like a) above for a long time and it has worked very well and I have written quite a few such lines Still I am not comfortable of answering the simple little question with a "yes you can" because neither a) nor b) is a utility in J People complain anyway about a) because that it is a .bat and not a .exe and also that it is not a J utility So I am not asking for this for a simple reason it seems to be a very real initial problem for many many people If they know from the beginning they can not create an executeable then they are not interested and they look no further ---------- Forwarded message ---------- From: Oleg Kobchenko <[EMAIL PROTECTED]> Date: 27.9.2006 07:20 Subject: Re: [Jgeneral] APLNext To: General forum <[email protected]> Why would anyone want to create such EXE file which just starts a J application? And what such EXE file would do exactly? Most EXE files are not started by double-clicking the EXE file directly. Instead a Shortcut is placed on the Start menu, Desktop, etc. It is very easy to create such a shortcut for your application. Here is how to make a shortcut for the Plot demo: * right-click Start, select Explore * go to: All Users\Start Menu\Programs\J * create a copy (not shortcut) of the J 601 icon and rename it to Plot * Right-click, select Properties * In the Target line add (separating with space): -jijx system\examples\graphics\plot\plotdemo.ijs * Click OK. Close the Explorer Now on the Start menu under J you have a Plot stand-alone application. This could be automated in a simple script. --- Björn Helgason <[EMAIL PROTECTED]> wrote: > It would be good to have a utility to create a .exe file in Windows which > does what you do in a .bat file today to call j with a script that starts an > j application > > It seems like many people want to ask the question can I create a .exe file > to start a j application > > It would be nice to be able to answer yes rather than explain > well yes you can call it from language xxx using the j.dll > or ... > .... you can create a .bat file to start j application bla bla bla... > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm -- Björn Helgason, Verkfræðingur Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127 801 Grímsnes ,t-póst: [EMAIL PROTECTED] Skype: gosiminn, gsm: +3546985532 Landslags og skrúðgarðagerð, gröfuþjónusta http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .-----------------------------------. ,' .\ / | Með léttri lund verður | ,--' _,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. | `-----------------------------------' | ) | (\_ _/) (`-. '--.) (='.'=) `. )----' (")_(") ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
