Introduction - KikiC99/movie GitHub Wiki
Installation Guide for Windows 10
-
Download and Install the latest version of Java
https://www.oracle.com/java/technologies/javase-downloads.html
-
Download and Install Eclipse
https://www.eclipse.org/downloads/
point the Eclipse Installer to your Java Installation and proceed
-
Launch Eclipse
if you like, change the workstation directory. Click 'Launch'
your Eclipse Home screen should look like this
-
Clone jasima Git Repository
before we clone the Git repository, we need to copy the link to the jasima repository
now open the Git perspective in the top right corner
once the Git perspective has been added, open the 'clone a Git respository' option on the left
Eclipse now automatically adds the Location from the clipboard. Click 'next'
nothing needs to be changed here. Click 'next'
if you like, change the 'Directory'. Change the 'Initial branch' from 'master' to 'develop'. Click 'Finish'
your Eclipse Home screen should now look like this
-
Importing jasima Git Project
open the drop-down menu 'File' on the top left and select 'Import...'
select 'Projects from Git' and click 'Next'
select 'Existing local repository' and click 'Next'
select 'jasima-simcore [develop]' and click 'Next'
nothing needs to be changed here. Click 'Next'
the 'jasima' folder should already be selected. Click 'finish'
your Eclipse Home screen should now look like this
-
Starting a new Project
open the drop-down menu on the top left and select 'Java Project'
name your new project, e.g. 'Test' and click 'Next'
under 'Projects' select 'Classpath' and click 'Add' on the right. In the new window click on the box corresponding to 'jasima' and click 'OK'
your classpath should look like this. Finally click 'Finish' to create your new 'jasima' project
your Eclipse Home screen should now look like this
open your new project on the left and right-click on 'src'. Under 'New' select 'Class'
once again name your class, e.g. 'Test' and click 'Finish' to create it
copy the following code into your new class:
import jasima.shopSim.models.dynamicShop.DynamicShopExperiment; public class Test { public static void main(String[] args) { DynamicShopExperiment e = new DynamicShopExperiment(); e.setNumMachines(1); e.runExperiment(); e.printResults(); } }
your class should then look like this
finally right-click on the class and under 'Run As' select '1 Java Application'
the results of the experiment will be displayed in the console
Note: if Eclipse compains about the missing variable JAVA_HOME, add it to your Windows User variables, pointing to the java folder