Eclipse is an IDE (Integrated Development Environment). It intends to facilitate the developer's work with integrated tools. Interesting features are:
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 Notepad++, TextPad or SciTE), see below.
https://www.eclipse.org/downloads/
We recommend to use the last version of Eclipse : 2019-09 (at last documentation editing time)
Properties
> Java Build Path
Source
tab:Output folder
and Default output folder
are set to capsis4/class (assuming Capsis is installed in a directory named capsis4
), check 'Allow output folders for source folders'Libraries
tab:.jar
from capsis4/ext/ are in the Java Build Path
; if needed, add them by using the Add JARs…
button; Java Build Path
; if needed, add it by using the Add Library…
button, choose JRE System Library
then Alternate JRE
and choose the JRE installed on your machine, should be Java version 1.8.capsis.app.Starter
)<?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>
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)Notepad++ is an open source and powerful code editor for Windows. Features:
More informations: https://notepad-plus.sourceforge.net/
Download Notepad++: https://notepad-plus.sourceforge.net/uk/download.php
C:\capsis4\ant.bat compile
TextPad is a general purpose editor with coloration and compilation command for Windows.
More information : https://www.textpad.com
Download Textpad : https://www.textpad.com/download
TextPad is a shareware (It is not an Open Source / Libre Software).
Configuration
→ Preferences
Tools
item(This way, compile in Capsis will be the first entry in the menu with the usual shortcut CTRL+&. The standard Java tools will be restored later.)
Add
→ Program
and select your_capsis_directory/src/javac_capsis.bat
Add → Java SDK Commands
to restore previously removed java tools.Tools → external tools → Compile
After a compilation, if there are errors, it is possible to double click on the “file:line” reference to open the file for correction.
Check this configuration :
If trouble with the expressions (double clicking does not open the file):
Scite is a simple editor available on Linux system. Use your system installer to install it.
For instance, for Ubuntu distribution use:
sudo apt-get install scite
Options → Open User Options file
my_capsis_dir
by the full path of your capsis4 directory)command.compile.*.java=sh my_capsis_dir/bin/javac_capsis.sh $(FileNameExt) command.build.*.java=sh my_capsis_dir/bin/javac_capsis.sh $(FileNameExt) command.go.*.java=java $(FileName)
You can now compile in Scite !!
See this note if you want to compile Capsis and Jeeb in Scite.