Invoke a simple applet.
Invoke your Java enabled internet browser, e.g. netscape or internet explorer.
Specify the following address in the browser.
http://localhost/minerva/home.html
Select ExamplePrograms, MinervaFeatures, HelloWorld and click helloworld.html there.
Enter some words in the lower entry window. HelloWorld should echo these
in the upper window.
This confirms that your Internet browser operates correctly and
that the MINERVA disks were read correctly.
Confirm environment setting and correct installation of your Java
Now let us invoke the HelloWorld Program, which you have used as an Applet before, as a standalone Java application.
Open the command prompt and enter the following commands.
> cd %MINERVA_HOME%
> dir /w
If you find the following message, MINERVA_HOME is correctly set.
If not, please check/correct the setting of %MINERVA_HOME%.
C:\InetPub\wwwroot\minerva Directory
[bin][ExamplePrograms]..etc...
Now confirm the proper setting of PATH and invocation of yor Java.
Enter the following command:
> minerva
'minerva' is the MINERVA command line executive, invoked without parameters
it will present a '?-' prompt. Leave MINERVA with 'halt.'.
MINERVA standalone execution relies on the proper installation of Java.
The scripts %MINERVA_HOME%\bin\WinNT\mjava.bat and %MINERVA_HOME%\bin\WinNT\mjavac.bat
allow MINERVA to access different Javas through a standard interface and
are configured for a standard installation of Microsoft Visual J++.
Depending on your installation of Java, you may have to adjust these
files. Please use the files in %MINERVA_HOME%\bin\WinNT
for references for other manufacturers and versions of Java.
NOTE that no files except mjava.bat, mjavac.bat and mjar.bat should need
any modification to accommodate other Java implementations.
MINERVA 2.4 Development Server (C) 1996,2003 IF Computer
:
:
Now we are ready to invoke HelloWorld:
> cd %MINERVA_HOME%\ExamplePrograms\MinervaFeatures\HelloWorld
> minervagui -l helloworld You and Me
HelloWorld should echo your parameters "You and Me"
MINERVA 2.4 Development Server (C) 1996,2003 IF Computer
:
:
['You','and','Me']
Showing that the MINERVA command line executive works fine.
Then at the end, confirm the operation of MINERVA compiler:
> minervac helloworld
Will produce messages like:
compile: helloworld.min -> helloworld.ass
generate interface: helloworld -> helloworld.mpk
You just compiled on your machine a (simple) MINERVA program!
This completes the confidence checks: applet operation,
standalone operation, compilation. We suggest now that you have
a look at the MINERVA documentation and play with the
example programs provided. Some are very simple, others assume
some knowledge of your operating system and Java.