Installation notes of the Maya Abacus Game
System requirements
The program can run on any operating system that supports Java (tested on Windows 7, Windows XP, Windows Vista and Ubuntu 11.04).
Hardware requirements: Processor type Intel Pentium or AMD freq. 300 MHz or higher, a 112 MB RAM or higher, a
monitor with minimum resolution 800x600 pixels or higher and standard I/O devices (eg keyboard, mouse, etc.)..
Installation
After unpacking the file Maya.zip to run the program you must click on the file Grafica1.jar or compile Grafica1.java contained in the src directory, and run the outcome.
On Ubuntu, for compilation from the terminal, type: javac Grafica1.java.
If java is not installed in your computer you need to perform this procedure.
On Windows:
From the network http://java.sun.com to retrieve the installation files (for your
operating system) of the JDK (Java SEDevelopment Kit 6 Update 7): -jdk-6u7-windows-i586-p.exe .
-Run the file .exe to install the JDK and select the default options until completion of its execution (you must be logged in as administrator).
- Then change the PATH environment variable.
The path upgrade to allow the system always to find 'javac' and 'java' must be done manually:
- Select from the control panel:
'Performance and Maintenance' -> 'System' -> 'Card:' Advanced '->' Variables 'environment'
- Section: 'System Variables' (NOT 'the user!'). Copy the path: C:\Programmi\jdk1.6.0_07\bin;
On Ubuntu:
- Ubuntu only requires installation of the Java JDK.
Compilation
For the compilation of the source file in directory src/ specify the compilation option
"-d ../bin" (the following instructions are good for both Windows and Ubuntu)
javac -d ../bin Grafica1.java
Resulting .class files will be generated in bin directory, and to launch the executable you need to be placed in that directory and to activate the virtual machine:
java Grafica1 & .
Alternatively if you prefer to have the executable as a single archive .jar, in bin directory you can create one there, for example with the following command:
jar cfe AbacoMaya10.jar Grafica1 *.class ../Immagini
and then you have to remove from the bin directory bytecode's files (which are compressed in the jar archive, then it is useless to duplicate them )