User Tools

Site Tools


magik-demo:developer:magik-project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
magik-demo:developer:magik-project [2013/05/15 16:17]
admin [Import MAGIK Project in Eclipse]
magik-demo:developer:magik-project [2013/08/23 10:33]
alex
Line 1: Line 1:
 +{{:​magik-demo:​magik_logo.png?​nolink&​500|}}
 +
 +====== MAGIK Project ======
 +
 This document describes how to manipulate with MAGIK project. \\ This document describes how to manipulate with MAGIK project. \\
 In particular how to:  In particular how to: 
Line 14: Line 18:
  
 === Steps === === Steps ===
 +  - First step is to set the DLV executable file path and PROLOG folder (for the code to execute for the specialization) by setting up environment variable ​
 +    - Detect where is located the folder magik_libs
 +    - Copy the (absolute) entire path (file name included)
 +    - Put in an __ENVIRONMENT VARIABLE__ called **MAGIK_LIBS**. An example: <​code>​ DLV_PATH =/​Users/​user/​Documents/​workspace/​MAGIK_WEB_3/​magik_libs</​code>​
 +    - E.g., on Mac OS X or Linux Operating systems, one can set this environment variable the following command in terminal <​code>​$export MAGIK_LIBS=aboslute_path_to_your_local_magik_libs</​code>​
 +
   - Deploy WAR file to Apache Tomcat server. \\ There are two ways to do it:   - Deploy WAR file to Apache Tomcat server. \\ There are two ways to do it:
     - Using **Tomcat Web Application Manager**     - Using **Tomcat Web Application Manager**
Line 30: Line 40:
   - Specify database connection for MAGIK web application. ​     - Specify database connection for MAGIK web application. ​  
    
-[[magik-demo:​developer:​magik-project|Back to Top]] | [[magik-demo:​start|Back to Home Page]]+[[magik-demo:​developer:​magik-project|Back to Top]] | [[magik-demo:​start-here|Back to Home Page]]
 ===== Import MAGIK Project in Eclipse ===== ===== Import MAGIK Project in Eclipse =====
  
Line 37: Line 47:
   ​   ​
 === Steps === === Steps ===
-  * Download Eclipse 3.x. Choose a workspace folder (not the one using for MEGIK-DEMO SVN).+  * Download Eclipse 3.x. Choose a workspace folder (not the one using for MAGIK-DEMO SVN).
   * Install Eclipse plugin ''​subversion.tigris.org''​ for SVN control (see instruction http://​web.mit.edu/​6.005/​www/​fa11/​psets/​ps0/​subclipse.html). Alternatively,​ one can use any SVN control program (e.g., svn command line tool, SmartSVN, etc.) but here we provide instruction for  ''​subversion.tigris.org''​ only.    * Install Eclipse plugin ''​subversion.tigris.org''​ for SVN control (see instruction http://​web.mit.edu/​6.005/​www/​fa11/​psets/​ps0/​subclipse.html). Alternatively,​ one can use any SVN control program (e.g., svn command line tool, SmartSVN, etc.) but here we provide instruction for  ''​subversion.tigris.org''​ only. 
   * Import MAGIK project:   * Import MAGIK project:
Line 47: Line 57:
   * To do so, one needs to link locally installed Apache Tomcat with Eclipse (see [[http://​www.coreservlets.com/​Apache-Tomcat-Tutorial/​eclipse.html| tutorial]]). Go to ''​File>​New>​Other''​. Find ''​Server''​ and click ''​Next''​. Then choose ''​Apache>​Tomcat v7.0 Server''​ and click ''​Next''​. Then go ''​Browse''​ and enter the local directory path where Apache Tomcat is installed. Finally, click ''​Finish''​.   * To do so, one needs to link locally installed Apache Tomcat with Eclipse (see [[http://​www.coreservlets.com/​Apache-Tomcat-Tutorial/​eclipse.html| tutorial]]). Go to ''​File>​New>​Other''​. Find ''​Server''​ and click ''​Next''​. Then choose ''​Apache>​Tomcat v7.0 Server''​ and click ''​Next''​. Then go ''​Browse''​ and enter the local directory path where Apache Tomcat is installed. Finally, click ''​Finish''​.
   * To run your MAGIK copy within Eclipse, right-click on the main project folder and then go to ''​Run As>Run on Server''​ and then ''​Finish''​. ​   * To run your MAGIK copy within Eclipse, right-click on the main project folder and then go to ''​Run As>Run on Server''​ and then ''​Finish''​. ​
- 
  
 === DLV API === === DLV API ===
Line 60: Line 69:
  
  
-[[magik-demo:​developer:​magik-project|Back to Top]] | [[magik-demo:​start|Back to Home Page]]+[[magik-demo:​developer:​magik-project|Back to Top]] | [[magik-demo:​start-here|Back to Home Page]]
 ===== MAGIK Project Description ===== ===== MAGIK Project Description =====
 MAGIK Web application is developed using Eclipse as a Web development platform, with the type of [[http://​help.eclipse.org/​indigo/​topic/​org.eclipse.wst.webtools.doc.user/​topics/​ccwebprj.html|Dynamic Web project]]. ​ MAGIK Web application is developed using Eclipse as a Web development platform, with the type of [[http://​help.eclipse.org/​indigo/​topic/​org.eclipse.wst.webtools.doc.user/​topics/​ccwebprj.html|Dynamic Web project]]. ​
Line 99: Line 108:
 </​code>​ </​code>​
  
-[[magik-demo:​developer:​magik-project|Back to Top]] | [[magik-demo:​start|Back to Home Page]]+[[magik-demo:​developer:​magik-project|Back to Top]] | [[magik-demo:​start-here|Back to Home Page]]
magik-demo/developer/magik-project.txt ยท Last modified: 2017/07/06 15:24 (external edit)