SoftSlate Commerce
Home » Get Support » Documentation » HTML Documentation

Eclipse

As of this writing among Java IDEs, Eclipse is the most popular and the only one currently gaining market share. It is a free, open-source application, and runs on Windows, Linux, Mac OS X, and other platforms. It provides great support for Java development, and has an extensive network of plug-in developers.

To use Eclipse with SoftSlate Commerce, follow these steps:

  1. Install SoftSlate Commerce. 

    If you haven't already, install SoftSlate Commerce on your development computer, following the steps outlined in the chapter on Installing SoftSlate Commerce. Note that the license allows you to install SoftSlate Commerce on any number of development machines that are inaccessible to the public.

  2. Download and Install Eclipse. 

    Visit www.eclipse.org to download Eclipse for your platform. It is free and runs on multiple operating systems. Follow the instructions on www.eclipse.org to install Eclipse.

  3. Create a New Java Project. 

    Once Eclipse is installed, create a new Java project pointing to the the directory where SoftSlate Commerce is installed on your local computer. Go to File -> New -> Project, select Java Project and click next, give the project any name you like, and then select "Create project from existing source" and find the SoftSlate Commerce installation directory.

  4. Configuration Settings. 

    Eclipse may automatically configure SoftSlate Commerce correctly when you first create the project. In case it does not, check the "Java Build Path" settings for the project to make sure they are correct:

    • Go to the File -> Properties -> Java Build Path screen.
    • Under the "Source" tab, add the <installation-drectory>/WEB-INF/src directory as the application's only source folder.
    • Under the same tab, make sure the "default output directory" is <installation-drectory>/WEB-INF/classes .
    • Next, under the "Libraries" tab, click the "Add JARs" button and check off all of the .jar files under the WEB-INF/lib and the WEB-INF/build directories.

    When you're done configuring these settings, Eclipse should be able to successfully compile the application. You'll be off and running.

[Note]Note

If you plan to use the Tomcat as your application server, we suggest pointing your Eclipse project to the same directory Tomcat uses for the application (under Tomcat's webapps directory). Since Eclipse compiles your Java code as you save each file, this prevents you from having to compile manually before testing your changes. A simple restart of Tomcat is all you need to do.

Copyright © 2008 SoftSlate, LLC. All Rights Reserved.

Powered by SoftSlate Commerce

Foraker Design