AMAPstudio

User Tools


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
documentation:using_eclipse [2019/03/19 16:17]
beudez
— (current)
Line 1: Line 1:
-====== Using Eclipse ====== 
  
- 
-==== Presentation ==== 
- 
-Eclipse is an IDE (Integrated Development Environment). It intends to facilitate the developer works with integrated tools. Interesting features are: 
- 
-  * A powerful editor with completion and refactoring capabilities 
-  * Version repository access (CVS, SVN) 
-  * Debugging tools / Profiling 
-  * Test framework 
-  * ... 
- 
-<note information>​ 
-**You don't need to use Eclipse to integrate your model in Capsis.** 
-Eclipse IDE has very advanced functionalities and can be a bit complex for occasional programmers. ​ 
-If you are not sure that Eclipse is for you, you can still use your own editor (like Textpad or Scite).  ​ 
-See [[documentation:​using textpad scite]] 
-</​note>​ 
- 
-==== Download ==== 
- 
-http://​www.eclipse.org/​downloads/​ 
- 
-We recommend to use the last version of Eclipse : **2018-12** 
- 
-/* 
-==== Import Capsis from CVS ==== 
- 
-  - Start eclipse 
-  - New project -> Project from CVS 
-  - Create new repository location 
-     * host : ''​capsis.cirad.fr''​ 
-     * repository path : ''/​opt/​cvs''​ 
-     * user : //​you_login//​ / password : //your cvs password// 
-  - module : ''​capsis4''​ 
-  - checkout as a project in the workspace 
-  - Choose project name (ie Capsis4). It is not necessary to use the ''​New project wizard''​ since the CVS integrate a ''​.project''​ file. 
-  - click ''​finish''​ 
-*/ 
-/* 
-==== Import Capsis from SVN  ==== 
- 
-  - Install Eclipse Subversive SVN plugin ​ 
-    * http://​benjchristensen.com/​2009/​06/​24/​eclipse-galileo-3-5-and-subversion/​ 
-    * http://​www.eclipse.org/​subversive/​documentation/​gettingStarted/​aboutSubversive/​install.php) 
-    * French tutorial : http://​blog.developpez.com/​djo-mos?​title=installer_le_support_svn_dans_eclipse_ga 
-    * With more recent versions of Eclipse, you can install ''​Subversive - SVN Team Provider''​ with the ''​Eclipse marketplace''​ that you find in the ''​help''​ menu.  
-  - New project -> Project from SVN 
-  - Create a new repository location 
-    * http://​amap-dev.cirad.fr/​svn/​capsis 
-    * Use your amap-dev login/​password (it is not necessary the same as CVS) 
-   - Select ''​trunk''​ 
-   - Click Finish 
-   - Select Check out as a porject with the name specified and enter **''​capsis4''​** 
-   - Click Finish 
-*/ 
-  
-==== Install Capsis with SVN ==== 
- 
-See: http://​amapstudio.cirad.fr/​private/​installeclipsewithsvn 
- 
- 
-==== Build Capsis ==== 
- 
-  * Capsis4 will be imported as a java project. Eclipse will manage compilation. ​ 
-  * It is not necessary to edit the build path since configuration files are already under version control 
-  * If you need to customize compilation process 
-    *  go in the project properties. 
-    * ensure that ''​source folders on build path''​ and ''​default output folder''​ are set to capsis4/bin 
-    * ensure that all ''​.jar''​ are in ''​the build path''​ by using the button ''​Add jars''​ 
- 
- 
-==== Run Capsis ==== 
- 
-  * Click on the Run Button. 
-  * You can add a particular configuration ​ 
-     * Run -> Run configuration 
-     * Select Java Application 
-     * New launch configuration 
-     * Specify the main class (here ''​capsis.app.Starter''​) 
-/*   * Set the working directory (arguments tab) to ''​${workspace_loc:​capsis4/​bin}''​ */ 
- 
-==== Troubleshooting ==== 
-  * If you have to press twice the run button before Capsis really starts then replace the file capsis4/​.project by the following one :  
-<​file>​ 
- 
-<?xml version="​1.0"​ encoding="​UTF-8"?>​ 
-<​projectDescription>​ 
- <​name>​capsis4</​name>​ 
- <​comment></​comment>​ 
- <​projects>​ 
- </​projects>​ 
- <​buildSpec>​ 
- <​buildCommand>​ 
- <​name>​org.eclipse.jdt.core.javabuilder</​name>​ 
- <​arguments>​ 
- </​arguments>​ 
- </​buildCommand>​ 
- </​buildSpec>​ 
- <​natures>​ 
- <​nature>​org.eclipse.jdt.core.javanature</​nature>​ 
- </​natures>​ 
-</​projectDescription>​ 
-</​file>​ 
- 
-  * If the visu 3D do not work when you launch capsis with Eclipse under Windows, then add the path of the corresponding ''​nativewindow_jvm.dll''​ among your system variables. For example, for a windows 64 : /​capsis4/​ext/​windows64/​nativewindow_jvm.dll (does not work with recent version of eclipse) 
documentation/using_eclipse.1553012253.txt ยท Last modified: 2019/03/19 16:17 by beudez