Using Eclipse

Using Eclipse

In This Topic

 


 

Eclipse is an Integrated Development Environment (IDE) for Java development. Plugins from Eclipse can make Eclipse also suitable for the development of other languages. There is, for instance, a C development environment based on Eclipse.

 

Installing Eclipse

A Java Development Kit (JDK) must be available in order to run Eclipse. This quick start guide assumes you are installing the JDK referenced in the XperienCentral Hardware and Software Requirements. The JDK is available from http://java.sun.com/javase/downloads/index_jdk5.jsp.

  1. Download Eclipse from http://www.eclipse.org/downloads/.

  2. Create the folder C:\GX\ and unpack the downloaded eclipse-(…)-win32.zip file to this folder. The C:\GX\eclipse folder is generated. When the installation is complete, Eclipse can be started by double-clicking the C:\GX\eclipse\eclipse.exe executable.

  3. Select a workspace or create one. For example:




    Throughout the instructions appearing in this topic, the example workspace shown above isn’t used. This step is only necessary because Eclipse requires you to define a workspace.



  4. Continue with the rest of the configuration and then close this tab.

 

Back to Top

 


 

Configuring Eclipse

In the Window > Preferences > Java > Installed JREs menu, verify that Eclipse uses the Java Software Development Kit (j2sdk) as a default and not the Java Runtime Environment (JRE) (if necessary, the j2sdk can be added using the [Add] button):

 

 

If the Java Software Development Kit is not selected by default, a message appears when you create a project warning you that the tools.jar cannot be found. This must be set correctly before defining a project or the project will have to be discarded and you must start all over again.

 

Back to Top

 


Configuring Eclipse to Develop Plugins

Before continuing the configuring process of Eclipse, it is necessary to install XperienCentral, which is available from GX. This topic assumes you are installing the latest version of XperienCentralinstall in the directory C:\GX\XperienCentral.

In the Window > Preferences > Java > Build path > Classpath variables menu, add the Maven2 repository by clicking [New].

  • Name: M2_REPO

  • Path (folder): C:\GX\xperiencentral\maven2-repository 

 

Back to Top

 


Tag Libraries (Taglibs)

To be able to use tag-expansion (CTRL-space using the default configuration) while developing JSP’s on XperienCentral-specific tags, modify the following settings. In the Window > Preferences > XML > XML Catalog menu, click [Add], and click the folder button at the top-right and select FileSystem. Fill in the following values:

wmedit tags

URI: C:\GX\XperienCentral\webapps\backend\WEB-INF\wm\tld\wmedit.tld

Key Type: URI

Key: http://www.gxsoftware.com/taglib/wmedit


wm tags

URI: C:\GX\ XperienCentral\webapps\backend\WEB-INF\wm\tld\wm.tld

Key Type: URI

Key: http://www.gx.nl/taglib/wm


wmfn (function) tags

URI: C:\GX\ XperienCentral\webapps\backend\WEB-INF\wm\tld\functions.tld

Key Type: URI

Key: http://www.gxsoftware.com/taglib/functions

 

If your Eclipse installation does not include the standard JSTL and Spring taglibs you can add the following useful tags:

jstl c (core) tags

URI: C:\GX\XperienCentral\webapps\backend\WEB-INF\wm\tld\jstl\c.tld

Key Type: URI

Key:  http://java.sun.com/jsp/jstl/core


jstl fn (functions) tags