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 CPU’s
  • 4GB of ram
  • 64 bits architecture ( although you can get running on 32 we do not suggest this architecture ).

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

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

Go to “servers” tab. Click on right click mouse button and from contextual menu choose “Add / server”. From the list choose “Tomcat 7 server”:

Configure a new Run time server environment:

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

Increment start and stop timeouts ( for example to 180 and 120 seconds respectively ).

 

Edit launch configuration: Add memory parameters - we suggest 2GB - sigar library path and utf-8 file encoding at VM arguments field:

-Xms128m -Xmx2048m -Djava.awt.headless=true -Dfile.encoding=utf-8 -Djava.library.path="/home/jllort/software/tomcat-7.0.27-openkm-6-community/lib/sigar"

Add your OpenKM project at source tab:

Add CATALINA_PID and LD_LIBRARY_PATH at 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/jllort/software/tomcat-7.0.27-openkm-6-community/lib/sigar

Latest Eclipse version comes by default with maven support plugins yet installed. For older Eclipse version follow this configuration steps:

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