• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • Setting up Eclipse environment for code

    I have downloaded the code tagged for v1.0.1. When I run the create_zip ant task, it succeeds. However, when I import the code into an Eclipse Java project, I get multiple build errors. The first ones are that two jars are missing (commons-fileupload-1.1,jar and commons-io-1.2.jar). I can get them and put them into WEB-INF/lib and that resolves those errors, but uncovers more. The following are ones that I can’t figure out:

    Description Resource Path Location Type
    The method getClinportalUrlIds(Map) is undefined for the type ApplicationService CDMSAPIService.java /OpenSpecimenv101/WEB-INF/src/edu/wustl/catissuecore/util line 98 Java Problem
    The method getVisitRelatedEncounteredDate(Map<String,Long>) is undefined for the type ApplicationService CDMSAPIService.java /OpenSpecimenv101/WEB-INF/src/edu/wustl/catissuecore/util line 131 Java Problem
    The method createObject(Object) is undefined for the type ApplicationService CaCoreAPIService.java /OpenSpecimenv101/WEB-INF/src/edu/wustl/catissuecore/caties/util line 210 Java Problem
    The method getCaTissueLocalParticipantMatchingObects(Participant, null) is undefined for the type ApplicationService CaCoreAPIService.java /OpenSpecimenv101/WEB-INF/src/edu/wustl/catissuecore/caties/util line 340 Java Problem
    The method getDefaultValue(String) is undefined for the type ApplicationService CaCoreAPIService.java /OpenSpecimenv101/WEB-INF/src/edu/wustl/catissuecore/caties/util line 301 Java Problem
    The method getParticipantMatchingObects(Participant) is undefined for the type ApplicationService CaCoreAPIService.java /OpenSpecimenv101/WEB-INF/src/edu/wustl/catissuecore/caties/util line 324 Java Problem
    The method getSpecimenCollectionGroupLabel(SpecimenCollectionGroup) is undefined for the type ApplicationService CaCoreAPIService.java /OpenSpecimenv101/WEB-INF/src/edu/wustl/catissuecore/caties/util line 281 Java Problem
    The method removeObject(Object) is undefined for the type ApplicationService CaCoreAPIService.java /OpenSpecimenv101/WEB-INF/src/edu/wustl/catissuecore/caties/util line 257 Java Problem
    The method updateObject(Object) is undefined for the type ApplicationService CaCoreAPIService.java /OpenSpecimenv101/WEB-INF/src/edu/wustl/catissuecore/caties/util line 234 Java Problem
    The method getClinportalUrlIds(Map) is undefined for the type ApplicationService CdmsIntegratorImpl.java /OpenSpecimenv101/WEB-INF/src/edu/wustl/catissuecore/cdms/integrator line 96 Java Problem

    They all seem to reference non-existant methods within an instance of the class itself. These coupled with the initial missing jars makes me wonder if I’ve imported the right thing.

    Any help would be greatly appreciated.

    Peace …

    Bob

    Hi Bob,

    All these errors because of java build path is not set properly.

    To fix this please do following steps

    1. Remove all jars from java build path.
    2. Add all jars from WEB-INF/lib and lib folder in build path.
    3. Clean and Build the project.

    It will work.

    Thanks! That worked!