Ir al contenido
Otras versiones

Cargando…

Configuring IDE from a clean Eclipse

Esta página aún no está disponible en tu idioma.

  • Eclipse
  • OpenJDK 1.8

Suggested minimum hardware configuration:

  • 2 CPUs
  • 4 GB of RAM
  • 64-bit architecture (although you can run it on 32-bit, we do not recommend that architecture).

We suggest downloading the latest stable version of Eclipse. Eclipse comes in several versions; you should download the “Eclipse IDE for Java EE Developers” for your computer architecture (32- or 64-bit).

Go to Window / Preferences / Java / Installed JRE. You must have OpenJDK 1.8 defined here:  

Go to the “Servers” tab. Right-click and, from the contextual menu, choose “Add / server”. From the list choose “Tomcat 7 server”:

Configure a new runtime server environment:

Check the Use Tomcat installation box (takes control of Tomcat installation).

Increase the start and stop timeouts (for example, to 180 and 120 seconds respectively).

 

Edit the launch configuration: add memory parameters (we suggest 2 GB), the sigar library path, and UTF-8 file encoding in the VM arguments field:

-Xms128m -Xmx2048m -Djava.awt.headless=true -Dfile.encoding=utf-8 -Djava.library.path="/home/openkm/tomcat-8.5.69/lib/sigar"

Add your OpenKM project on the Source tab:

Add CATALINA_PID and LD_LIBRARY_PATH to the environment variables:

CATALINA_PID=$CATALINA_HOME/catalina.pid
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib/sigar:/usr/local/apr/lib

or

CATALINA_PID=$CATALINA_HOME/catalina.pid
LD_LIBRARY_PATH=/home/openkm/tomcat-8.5.69/lib/sigar

The latest Eclipse version comes by default with Maven support plugins already installed. For older Eclipse versions, follow these configuration steps:

  • Go to Help > Eclipse Marketplace
  • Install the plugin named M2Eclipse.
  • Go to Help > Eclipse Marketplace
  • Install the plugin named Subversive.