If you “stow” a Natural-Program, you create a kind of bytecode (compareable to Java). To run a natural Program you always need a Natural Runtime installed on the regarding PC (like the virtual machine of java).
So it’s not possible to create an “EXE-File” or something like that to run the program without Natural.
But I guess for business applications on cell phones, it’s better to work with simple HTML or WAP-documents. And there you can use Natural on the host side of course.
For games etc. on cell phones, there are obviousliy better development languages and environments available.
Or you write a configuration file for SYSOBJH (see the docs). SYSOBJH is not a replace ment for SYSMAIN but for SYSTRANS. SYSMAIN copies betweeen libraries. SYSOBJH creates file(s) for download and upload on different machines (which must both run Natural, but these Naturals need not to know each other)
I can somewhat see the workflow required now. Appreciate a little more input.
Let me recap,
Use SYSMAIN and create a library only wth the ‘Objects’ - including the DDM
Use SYSOBJH and use Unload to package the library all objects - The FDT ?
Aquire / Create a Natural / ADABAS runtime Object ???
Install Natural / ADABAS run time on the receiving PC
Use SYSOBJH to Load application
Use SYSOBJH to Load FDT ?
The PC that is intended to run the application needs only the ‘Runtime’ (the virtual machine). I cannot find any refrence to how I can get this. My question is,
Can Natural create the runtime version to be shipped with the application?
What about the ADABAS files? How do you package and ship?
Just to understand where I am comming from - My former ‘Team Lead’ a Java developer used ‘InstallAnywhere’ that was slick in packaging the java objects, JVM and the ‘Object’ database and provide a single executable to the clients for installation. I am trying to mimick and / or ‘improve the concept’ for use.
I’m not a salesperson, so please check with an account representative and take this as a BIG disclaimer
Your client would have to acquire runtime license(s), not sure if you could enter a reseller agreement so that you can ship an entire “package” that way. The Runtime needs to be installed as well, not just copied.
SYSOBJH allows you to package “external” objects, i.e. other than Natural objects and FDTs, as well.
We are using Naturall 6.1.1 Pl.03
Once you have installed Natural Runtime (which is basically a copy of Natural - without all the bells and whistels) you can do the followig:
(Note: This is how we do it, so, it might not be the best way.)
Your Natural Runtime file structure (in Win Explre) is a duplicate of your Natural file structure i.o.w.
ADABAS (c:\Program Files\Software AG\ADABAS\DB??
If you zip the content of these folders and duplicate them on the receiving PC’s, you should have your Runtime up and running.
(Note: Always reboot PC after unzipping to clear buffers, or write routine to clear buffers).
This is in a nutshell how we distribute that “package”. You can contact me at jurgens.viljoen@sita.co.za.