Announcement Announcement Module
Collapse
No announcement yet.
Compiling Spring Source Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Compiling Spring Source

    Hi,

    I checked out the Spring's source from SourceForge's CVS server, and I'm trying to compile the Spring-core module.
    But while executing the build.xml file, problems in compilation has appeared.
    This is what i've encountered:

    "Can only iterate over an array or an instance of java.lang.Iterable AnnotationTransactionAttributeSource.java spring/tiger/src/org/springframework/transaction/annotation "

    Internal compiler error
    org.eclipse.jdt.internal.core.builder.MissingClass FileException
    at org.eclipse.jdt.internal.core.builder.AbstractImag eBuilder.storeProblemsFor(AbstractImageBuilder.jav a:426)
    at org.eclipse.jdt.internal.core.builder.AbstractImag eBuilder.updateProblemsFor(AbstractImageBuilder.ja va:464)
    at org.eclipse.jdt.internal.core.builder.AbstractImag eBuilder.acceptResult(AbstractImageBuilder.java:10 4)
    at org.eclipse.jdt.internal.compiler.Compiler.accept( Compiler.java:229)
    at org.eclipse.jdt.internal.compiler.lookup.LookupEnv ironment.askForType(LookupEnvironment.java:128)
    at org.eclipse.jdt.internal.compiler.lookup.PackageBi nding.getTypeOrPackage(PackageBinding.java:178)
    at org.eclipse.jdt.internal.compiler.lookup.Scope.get TypeOrPackage(Scope.java:2438)
    at org.eclipse.jdt.internal.compiler.lookup.Scope.get Type(Scope.java:2177)
    at org.eclipse.jdt.internal.compiler.ast.SingleTypeRe ference.getTypeBinding(SingleTypeReference.java:39 )
    at org.eclipse.jdt.internal.compiler.ast.TypeReferenc e.resolveType(TypeReference.java:124)
    at org.eclipse.jdt.internal.compiler.ast.InstanceOfEx pression.resolveType(InstanceOfExpression.java:80)
    at org.eclipse.jdt.internal.compiler.ast.Expression.r esolveTypeExpecting(Expression.java:848)
    at org.eclipse.jdt.internal.compiler.ast.IfStatement. resolve(IfStatement.java:222)
    at org.eclipse.jdt.internal.compiler.ast.Block.resolv e(Block.java:101)
    at org.eclipse.jdt.internal.compiler.ast.ForeachState ment.resolve(ForeachStatement.java:455)
    at org.eclipse.jdt.internal.compiler.ast.AbstractMeth odDeclaration.resolveStatements(AbstractMethodDecl aration.java:418)
    at org.eclipse.jdt.internal.compiler.ast.MethodDeclar ation.resolveStatements(MethodDeclaration.java:178 )
    at org.eclipse.jdt.internal.compiler.ast.AbstractMeth odDeclaration.resolve(AbstractMethodDeclaration.ja va:396)
    at org.eclipse.jdt.internal.compiler.ast.TypeDeclarat ion.resolve(TypeDeclaration.java:1072)
    at org.eclipse.jdt.internal.compiler.ast.TypeDeclarat ion.resolve(TypeDeclaration.java:1121)
    at org.eclipse.jdt.internal.compiler.ast.CompilationU nitDeclaration.resolve(CompilationUnitDeclaration. java:305)
    at org.eclipse.jdt.internal.compiler.Compiler.process (Compiler.java:512)
    at org.eclipse.jdt.internal.compiler.Compiler.compile (Compiler.java:329)
    at org.eclipse.jdt.internal.core.builder.AbstractImag eBuilder.compile(AbstractImageBuilder.java:248)
    at org.eclipse.jdt.internal.core.builder.AbstractImag eBuilder.compile(AbstractImageBuilder.java:221)
    at org.eclipse.jdt.internal.core.builder.BatchImageBu ilder.build(BatchImageBuilder.java:50)
    at org.eclipse.jdt.internal.core.builder.JavaBuilder. buildAll(JavaBuilder.java:213)
    at org.eclipse.jdt.internal.core.builder.JavaBuilder. build(JavaBuilder.java:141)
    at org.eclipse.core.internal.events.BuildManager$2.ru n(BuildManager.java:593)
    at org.eclipse.core.internal.runtime.InternalPlatform .run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.jav a:783)
    at org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:168)
    at org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:202)
    at org.eclipse.core.internal.events.BuildManager$1.ru n(BuildManager.java:231)
    at org.eclipse.core.internal.runtime.InternalPlatform .run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.jav a:783)
    at org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:234)
    at org.eclipse.core.internal.events.BuildManager.basi cBuildLoop(BuildManager.java:253)
    at org.eclipse.core.internal.events.BuildManager.buil d(BuildManager.java:282)
    at org.eclipse.core.internal.resources.Workspace.buil d(Workspace.java:211)
    at org.eclipse.jdt.internal.ui.util.CoreUtility$Build Job.run(CoreUtility.java:143)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:76)
    AnnotationTransactionAttributeSource.java spring/tiger/src/org/springframework/transaction/annotation

    The method getAnnotations() is undefined for the type Class AnnotationTransactionAttributeSource.java spring/tiger/src/org/springframework/transaction/annotation

    The method getAnnotations() is undefined for the type Method AnnotationTransactionAttributeSource.java spring/tiger/src/org/springframework/transaction/annotation

    The project was not built since its build path is incomplete. Cannot find the class file for java.lang.annotation.Annotation. Fix the build path then try building this project spring
    The type java.lang.annotation.Annotation cannot be resolved. It is indirectly referenced from required .class files Transactional.java spring/tiger/src/org/springframework/transaction/annotation"

    Does anybody know how to fix it?

    []'s

  • #2
    Are you building on Java 1.5? If not you might want to exclude the entire tiger tree from your build since it relies on JDK 1.5.

    Rob

    Comment

    Working...
    X