Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-dev] Trying to build 2.0.0, ANT script fail withoutmentioning any wrong prerequisite

Sebastien,
    If you refer to the Eclipse project [org.eclipse.persistence.jpa.modelgen] - you will see that the project overrides any default "compiler compliance level" and currently hardcodes it to "1.6" - therefore this project will post a build warning if a you attempt to use a 1.5 JRE in Eclipse or WSAD/RAD.
    However, the ant build should have a warning/override.
    thank you
    /michael

Sebastien Tardif wrote:
JAVA_HOME was pointing to Java 5. I have also tried with same original
SVN rev using latest Java 5 version "22" and still the same problem. 

With Java 6 the problem goes away, so I will stick with it.

Output of configuration when using Java 5:
C:\>echo %JAVA_HOME%
C:\Tools\jdk\1.5.0\1.5.0_16

C:\>cd C:\Tools\jdk\1.5.0\1.5.0_16

C:\Tools\jdk\1.5.0\1.5.0_16>cd bin

C:\Tools\jdk\1.5.0\1.5.0_16\bin>java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode)

In Java 5, project that required Java 6 should probably show a clear
warning and skip compiling instead of trying. This result is after
update the SVN snapshot with latest fix for override:

init:

compile:
    [mkdir] Created dir:
C:\EclipseLinkSrc\br2.0\trunk\jpa\org.eclipse.persistence.jpa.modelgen\c
lasses
    [javac] Compiling 9 source files to
C:\EclipseLinkSrc\br2.0\trunk\jpa\org.eclipse.persistence.jpa.modelgen\c
lasses
    [javac]
C:\EclipseLinkSrc\br2.0\trunk\jpa\org.eclipse.persistence.jpa.modelgen\s
rc\org\eclipse\persistence\internal\
jpa\modelgen\CanonicalModelProcessor.java:24: package
javax.annotation.processing does not exist
    [javac] import javax.annotation.processing.*;
    [javac] ^
    [javac]
C:\EclipseLinkSrc\br2.0\trunk\jpa\org.eclipse.persistence.jpa.modelgen\s
rc\org\eclipse\persistence\internal\
jpa\modelgen\CanonicalModelProcessor.java:25: package
javax.lang.model.element does not exist
    [javac] import javax.lang.model.element.*;
    [javac] ^
    [javac]
C:\EclipseLinkSrc\br2.0\trunk\jpa\org.eclipse.persistence.jpa.modelgen\s
rc\org\eclipse\persistence\internal\
jpa\modelgen\CanonicalModelProcessor.java:26: package
javax.lang.model.type does not exist
    [javac] import javax.lang.model.type.PrimitiveType;



-----Original Message-----
From: eclipselink-dev-bounces@xxxxxxxxxxx
[mailto:eclipselink-dev-bounces@xxxxxxxxxxx] On Behalf Of Tom Ware
Sent: Friday, December 11, 2009 3:26 PM
To: Dev mailing list for Eclipse Persistence Services
Subject: Re: [eclipselink-dev] Trying to build 2.0.0, ANT script fail
withoutmentioning any wrong prerequisite

'looks like an issue that occurs when building on Java 5.  (our build
builds on 
Java 6 with a Java 5 target)  @Override checking does not take
implemented 
interfaces into account in Java 5.  Workaround is to build in Java 6.

Fix is checked into trunk and 2.0.1.

Eric Gwin wrote:
  
Sebastien,

I reviewing your log I noticed a few things that may be pertinent:
- this one probably isn't (yet), but I notice the full path for 
junit.lib is set to: 'C:apache-ant-1.7.1libjunit-4.6.jar'.
  However your classpath has: C:\apache-ant-1.7.1\lib\junit-4.6.jar
- I also notice you got the warning "Warning: Minimum of JDK6 is 
required for some components to
build." It should only be displayed if Ant detects JDK 1.5 as the 
current JDK. Yet "ant -version" shows 1.6.0.

Can you verify your paths are clean, or that you don't have an 
"JDK_HOME" env variable set to 1.5. The compile for core should work 
with JDK 1.5 anyway, but it maybe that there is an as yet unknown jdk 
compatibility issue going on.

In the meantime I'll look further into the "superclass" errors you are
    
  
receiving from the compiler.

-Eric

Sebastien Tardif wrote:
    
I'm trying to build 2.0.0, ANT script fail without mentioning any
      
wrong
  
prerequisite

Any idea?


C:\EclipseLinkSrc\br2.0\trunk>ant
Buildfile: build.xml
     [echo] trunk.build.location = 'C:\EclipseLinkSrc\br2.0\trunk'
     [echo] env.CLASSPATH        =

      
'.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\d
  
b2jcc.jar;C:\

      
PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bi
  
n;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Prog
ram Files\Rational\ClearQuest\cqjni.jar'
     [echo] java.class.path      =

      
'C:\apache-ant-1.7.1\bin\..\lib\ant-launcher.jar;C:\EclipseLinkSrc\br2.0
  
\trunk\.\;C:\

      
PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.
  
jar;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_c

      
u.jar;C:\PROGRA~1\IBM\SQLLIB\bin\;C:\PROGRA~1\IBM\SQLLIB\java\common.jar
  
;C:\Program Files\Rational\ClearQuest\cqjni.jar;

      
C:\apache-ant-1.7.1\lib\ant-antlr.jar;C:\apache-ant-1.7.1\lib\ant-apache
  
-bcel.jar;C:\apache-ant-1.7.1\lib\ant-apache-bsf

      
.jar;C:\apache-ant-1.7.1\lib\ant-apache-log4j.jar;C:\apache-ant-1.7.1\li
  
b\ant-apache-oro.jar;C:\apache-ant-1.7.1\lib\ant

      
-apache-regexp.jar;C:\apache-ant-1.7.1\lib\ant-apache-resolver.jar;C:\ap
  
ache-ant-1.7.1\lib\ant-commons-logging.jar;C:\ap

      
ache-ant-1.7.1\lib\ant-commons-net.jar;C:\apache-ant-1.7.1\lib\ant-jai.j
  
ar;C:\apache-ant-1.7.1\lib\ant-javamail.jar;C:\a

      
pache-ant-1.7.1\lib\ant-jdepend.jar;C:\apache-ant-1.7.1\lib\ant-jmf.jar;
  
C:\apache-ant-1.7.1\lib\ant-jsch.jar;C:\apache-a

      
nt-1.7.1\lib\ant-junit.jar;C:\apache-ant-1.7.1\lib\ant-launcher.jar;C:\a
  
pache-ant-1.7.1\lib\ant-netrexx.jar;C:\apache-an

      
t-1.7.1\lib\ant-nodeps.jar;C:\apache-ant-1.7.1\lib\ant-starteam.jar;C:\a
  
pache-ant-1.7.1\lib\ant-stylebook.jar;C:\apache-

      
ant-1.7.1\lib\ant-swing.jar;C:\apache-ant-1.7.1\lib\ant-testutil.jar;C:\
  
apache-ant-1.7.1\lib\ant-trax.jar;C:\apache-ant-

      
1.7.1\lib\ant-weblogic.jar;C:\apache-ant-1.7.1\lib\ant.jar;C:\apache-ant
  
-1.7.1\lib\junit-4.6.jar;C:\apache-ant-1.7.1\lib

      
\xercesImpl.jar;C:\apache-ant-1.7.1\lib\xml-apis.jar;C:\Tools\jdk\1.5.0\
  
1.5.0_16\lib\tools.jar'
     [echo] user.home            = 'C:\Documents and
      
Settings\stardif'
  
     [echo] Loading user properties from: 'C:\Documents and
Settings\stardif/build.properties'
     [echo] oracle.extensions.depend.dir =
'C:\EclipseLinkSrc\br2.0\trunk/../extension.oracle.lib.external'
     [echo] extensions.depend.dir        =
'C:\EclipseLinkSrc\br2.0\trunk'
     [echo] junit.lib = 'C:apache-ant-1.7.1libjunit-4.6.jar' (if not
      
set
  
tests may not compile; let alone run)
     [echo] Loading default properties from:
'C:\EclipseLinkSrc\br2.0\trunk/build.properties'
     [echo] Warning: Minimum of JDK6 is required for some components
      
to
  
build.
     [echo] jdbc.driver.jar='${jdbc.driver.jar}'

clean-runtime-checkedin:
     [echo] Loading C:\Documents and
Settings\stardif/build.properties...

clean:

build-core:
     [echo] asm.build.location =
'C:\EclipseLinkSrc\br2.0\trunk\plugins\org.eclipse.persistence.asm'
     [echo] Loading C:\Documents and
Settings\stardif/build.properties...

clean:
   [delete] Deleting directory
C:\EclipseLinkSrc\br2.0\trunk\plugins\org.eclipse.persistence.asm\tmp

init:
     [echo] extensions.depend.dir        =
'C:\EclipseLinkSrc\br2.0\trunk'
     [echo] bnd.path                     = '${bnd.path}'

generate-manifest:
     [echo] Generate the OSGi bundle manifest before jarring...
    [mkdir] Created dir:
C:\EclipseLinkSrc\br2.0\trunk\plugins\org.eclipse.persistence.asm\tmp

package:
      [jar] Building jar:

      
C:\EclipseLinkSrc\br2.0\trunk\plugins\org.eclipse.persistence.asm_2.0.1.
  
qualifier.jar
      [jar] Building jar:

      
C:\EclipseLinkSrc\br2.0\trunk\plugins\org.eclipse.persistence.asm.source
  
_2.0.1.qualifier.jar

bnd-package:

build:
     [echo] antlr.build.location =
'C:\EclipseLinkSrc\br2.0\trunk\plugins\org.eclipse.persistence.antlr'
     [echo] Loading C:\Documents and
Settings\stardif/build.properties...

clean:
   [delete] Deleting directory

      
C:\EclipseLinkSrc\br2.0\trunk\plugins\org.eclipse.persistence.antlr\tmp
  
init:
     [echo] extensions.depend.dir        =
'C:\EclipseLinkSrc\br2.0\trunk'
     [echo] bnd.path                     = '${bnd.path}'

generate-manifest:
     [echo] Generate the OSGi bundle manifest before jarring...
    [mkdir] Created dir:

      
C:\EclipseLinkSrc\br2.0\trunk\plugins\org.eclipse.persistence.antlr\tmp
  
package:
      [jar] Building jar:

      
C:\EclipseLinkSrc\br2.0\trunk\plugins\org.eclipse.persistence.antlr_2.0.
  
1.qualifier.jar
      [jar] Building jar:

      
C:\EclipseLinkSrc\br2.0\trunk\plugins\org.eclipse.persistence.antlr.sour
  
ce_2.0.1.qualifier.jar


bnd-package:

build:
     [echo] Loading C:\Documents and
Settings\stardif/build.properties...

clean:

init:
     [echo] extensions.depend.dir        =
'C:\EclipseLinkSrc\br2.0\trunk'
     [echo] bnd.path                     = '${bnd.path}'

compile:
    [mkdir] Created dir:

      
C:\EclipseLinkSrc\br2.0\trunk\foundation\org.eclipse.persistence.core\cl
  
asses
     [echo] Stamping the following values:
     [echo] version:       '2.0.1'
     [echo] qualifier:     'qualifier'
     [echo] buildDate:     '20091211'
     [echo] buildTime:     '1408'
     [echo] buildType:     'SNAPSHOT'
     [echo] buildRevision: 'NA'
     [copy] Copying 1 file to

      
C:\EclipseLinkSrc\br2.0\trunk\foundation\org.eclipse.persistence.core\cl
  
asses\org\eclipse\
persistence
    [javac] Compiling 1 source file to

      
C:\EclipseLinkSrc\br2.0\trunk\foundation\org.eclipse.persistence.core\cl
  
asses
    [javac] Compiling 1354 source files to

      
C:\EclipseLinkSrc\br2.0\trunk\foundation\org.eclipse.persistence.core\cl
  
asses

    [javac]

      
C:\EclipseLinkSrc\br2.0\trunk\foundation\org.eclipse.persistence.core\sr
  
c\org\eclipse\persistence\oxm\mappin
gs\XMLInverseReferenceMapping.java:176: method does not override a
method from its superclass
    [javac]     @Override
    [javac]      ^
    [javac]

      
C:\EclipseLinkSrc\br2.0\trunk\foundation\org.eclipse.persistence.core\sr
  
c\org\eclipse\persistence\oxm\mappin
gs\XMLInverseReferenceMapping.java:186: method does not override a
method from its superclass
    [javac]     @Override
    [javac]      ^
    [javac]

      
C:\EclipseLinkSrc\br2.0\trunk\foundation\org.eclipse.persistence.core\sr
  
c\org\eclipse\persistence\oxm\mappin
gs\XMLInverseReferenceMapping.java:191: method does not override a
method from its superclass
    [javac]     @Override
    [javac]      ^
    [javac] Note: Some input files use unchecked or unsafe
      
operations.
  
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 3 errors

BUILD FAILED
C:\EclipseLinkSrc\br2.0\trunk\build.xml:241: The following error
occurred while executing this line:

      
C:\EclipseLinkSrc\br2.0\trunk\foundation\org.eclipse.persistence.core\bu
  
ild.xml:162: Compile failed; see the compiler er
ror output for details.

Total time: 30 seconds
C:\EclipseLinkSrc\br2.0\trunk>java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)

C:\EclipseLinkSrc\br2.0\trunk>
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev

  
      
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev
    
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev
  


Back to the top