----------------------------------------------------------------------------- EulerGUi setup on Windows with CygWin Michel Kern - 28 june 2012 ----------------------------------------------------------------------------- Cygwin Setup (GNU Command Line Interpreter on Windows) inspiré de: http://pastebin.com/i7X9AcRy ----------------------------------------------------------------------------- - Download 'setup.exe' from http://cygwin.com/install.html - Create a'cygwin' folder under C: - Move 'setup.exe'in C:\cygwin - Launch'setup.exe' and click 4 times in a row on [Next] button - Select a 'mirror' (e.g: ftp://mirror.cict.fr) then [Next] - A warning is displated, click [OK] - Select the following packages: - In 'search' field, type 'git-svn', then open 'Devel' folder and click on 'Skip' to request download of 'git-svn' - In 'search' field, type 'wget', then open 'Web' folder and click on 'Skip' to request download of 'wget' - In 'search' field, type 'vim', then open 'Editors' folder and click on 'Skip' to request download of 'vim' - Click 2 times on [Next], cela démarre le téléchargement de 'git-svn', 'wget', 'vim' et tous leurs prérequis - Click on [Finish] Java Setup ----------------------------------------------------------------------------- - Download 'Windows Hors ligne' from http://java.com/fr/download/manual.jsp - Launch 'jre-7u5_windows-i586.exe' and click on sur [Install] - If a warning tells you that Java is already installed then click on [No] - Else click on [Yes] - Once Java is installed, modify '.bash_profile' file by doing the following: - Launch 'Cygwin shell' with desktop icon 'Cygwin Terminal' - type 'vi .bash_profile, move the cursor to the end of the file with down arrow key, then [Esc], O (uppercase) and type: export PATH=$PATH:"/cygdrive/c/Program Files/Java/jdk1.7.0_02/bin" then [Esc] :wq! [Return] - Force update of '$PATH' variable by typing 'source .bash_profile' - Type 'which javac' which should return: '/cygdrive/c/Program Files/Java/jdk1.7.0_02/bin/javac' Maven Setup ----------------------------------------------------------------------------- - Download Maven 3: from http://mirror.ibcp.fr/pub/apache/maven/binaries/apache-maven-3.0.4-bin.zip - Extract folder 'apache-maven-3.0.4' from the zip, copy it under C:\ and rename it 'maven' - Launch 'Cygwin shell' with desktop icon 'Cygwin Terminal' - Type 'vi .bash_profile, dove the cursor to the end of the file with down arrow key, add another 'export PATH..' line: - [Esc], O (uppercase) and - type: export PATH=$PATH:/cygdrive/c/maven/bin puis [Esc] :wq! [Return] then [Esc] :wq! [Return] - Force update of '$PATH' variable by typing 'source .bash_profile' - Type 'which mvn' which should return: '/cygdrive/c/maven/bin/mvn' EulerGUI Setup from sources ----------------------------------------------------------------------------- - Launch 'Cygwin shell' with desktop icon 'Cygwin Terminal' - Type 'mkdir EulerGUI' - Type 'cd EulerGUI' - Now download EulerGUI source by typing: svn co https://eulergui.svn.sourceforge.net/svnroot/eulergui/trunk/eulergui - Type 'cd eulergui' - Type './build.sh': this starts 'Maven' tool which will download all prerequisites of EulerGUI project (Euler, Drools, ...) then create runtime (.jar file) from sources and maven configuration files (pom.xml, .java, etc...) - If 'build' succeeds ('BUILD SUCCESS' message), you now launch EulerGUI: - cd target - java -jar eulergui-1.11-SNAPSHOT-jar-with-dependencies.jar - To test EulerGUI, use 'File/Import project (local)' menu then go up one level in folder tree (bouton with folder icon and an up arrow) then sélect 'examples' folder and select 'BloodPressure.n3p' - Noew there is a small clickabke area under toolbar at 1/3 of window width, click this area this opens another EulerGUI instance d'EulerGUI with files loaded among which 'BloodPressure.n3p' - Select 'BloodPressure.n3p', this opens the file in 'JEdit' and displays description of 'BloodPressure' rule