facebook

Build problem while building a project

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #263732 Reply

    dark_profile
    Member

    Hi,

    I am a new user of Eclipse. Recently I added a sample project in Eclipse and tried to compile it.
    Following were the errors:

    1. The type java.lang.Enum cannot be resolved. It is indirectly referenced from required .class files pimpmyshirt/pimpmyshirt/src/org/pimpmyshirt/domain

    2. The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Enum. Fix the build path then try building this project pimpmyshirt

    3. The import com.sun.java_cup cannot be resolved dreamhome/dreamhome-web/JavaSource/dreamhome/service PropertyServiceProvider.java

    Please do guide.

    Regards
    Mohit

    #263781 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    Mohit,
    These all sound like build path problems.

    1) Enum is from Java 5, make sure you are biulding your project with Java5 compiler settings and your build path is using the Java5 libraries and not Java 1.4.

    2) You need to fix this first. What you probably did is copy this project from another computer that either had a different JDK installer or had it installed in a different location, so when you loaded it on this machine you have now, it cannot resolve the JRE. You need to fix this by going to the Window > Prefs > Java > Installed JREs preference panel, then going back to your Project Properties, under Java Build Path and Libraries tab. Remove the broken JRE libraries and add the working ones for Java 5.

    3) Probably related to #2.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Build problem while building a project

You must be logged in to post in the forum log in