Introduction - KikiC99/movie GitHub Wiki

Installation Guide for Windows 10

  1. Download and Install the latest version of Java

    https://www.oracle.com/java/technologies/javase-downloads.html

    1_Screenshot_Java_Download_Gimp

    2_Screenshot_Java_Install_Gimp

  2. Download and Install Eclipse

    https://www.eclipse.org/downloads/

    3_Screenshot_Eclipse_Download_Gimp

    4_Screenshot_Eclipse_Java_Gimp

    point the Eclipse Installer to your Java Installation and proceed

    5_Screenshot_Eclipse_Install_Gimp

  3. Launch Eclipse

    if you like, change the workstation directory. Click 'Launch'

    6_Screenshot_Eclipse_Workspace_Gimp

    your Eclipse Home screen should look like this

    7_Screenshot_Eclipse_Home_Gimp

  4. Clone jasima Git Repository

    before we clone the Git repository, we need to copy the link to the jasima repository

    8_Screenshot_Jasima_Download_Gimp

    now open the Git perspective in the top right corner

    9_Screenshot_Eclipse_Perspective_Gimp

    once the Git perspective has been added, open the 'clone a Git respository' option on the left

    10_Screenshot_Eclipse_Git_Gimp

    Eclipse now automatically adds the Location from the clipboard. Click 'next'

    11_Screenshot_Eclipse_Repository_Gimp

    nothing needs to be changed here. Click 'next'

    12_Screenshot_Eclipse_Branch_Gimp

    if you like, change the 'Directory'. Change the 'Initial branch' from 'master' to 'develop'. Click 'Finish'

    13_Screenshot_Eclipse_Destination_Gimp

    your Eclipse Home screen should now look like this

    14_Screenshot_Eclipse_Git_Home

  5. Importing jasima Git Project

    open the drop-down menu 'File' on the top left and select 'Import...'

    15_Screenshot_Eclipse_Import

    select 'Projects from Git' and click 'Next'

    16_Screenshot_Eclipse_Import_Git

    select 'Existing local repository' and click 'Next'

    17_Screenshot_Eclipse_Import_Source

    select 'jasima-simcore [develop]' and click 'Next'

    18_Screenshot_Eclipse_Import_Select

    nothing needs to be changed here. Click 'Next'

    19_Screenshot_Eclipse_Import_Wizard

    the 'jasima' folder should already be selected. Click 'finish'

    20_Screenshot_Eclipse_Import_Project

    your Eclipse Home screen should now look like this

    21_Screenshot_Eclipse_Jasima_Home

  6. Starting a new Project

    open the drop-down menu on the top left and select 'Java Project'

    22_Screenshot_Eclipse_New_Project_Gimp

    name your new project, e.g. 'Test' and click 'Next'

    23_Screenshot_Eclipse_Project_Name_Gimp

    under 'Projects' select 'Classpath' and click 'Add' on the right. In the new window click on the box corresponding to 'jasima' and click 'OK'

    24_Screenshot_Eclipse_Project_Classpath

    your classpath should look like this. Finally click 'Finish' to create your new 'jasima' project

    25_Screenshot_Eclipse_Project_Finish

    26_Screenshot_Eclipse_Project_Module

    your Eclipse Home screen should now look like this

    27_Screenshot_Eclipse_Project_Home

    open your new project on the left and right-click on 'src'. Under 'New' select 'Class'

    28_Screenshot_Eclipse_New_Class

    once again name your class, e.g. 'Test' and click 'Finish' to create it

    29_Screenshot_Eclipse_Class_Name

    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

    30_Screenshot_Eclipse_Class_Code

    finally right-click on the class and under 'Run As' select '1 Java Application'

    31_Screenshot_Eclipse_Class_Run

    32_Screenshot_Eclipse_Class_Save

    the results of the experiment will be displayed in the console

    33_Screenshot_Eclipse_Console

    Note: if Eclipse compains about the missing variable JAVA_HOME, add it to your Windows User variables, pointing to the java folder