AW: [opencms-dev] problems build opencms from source with ant

"Bührle, Martin, FCI1" martin.buehrle at lfk.eads.net
Sun Jun 9 16:39:32 CEST 2002


Hi Gustav!

Thanks for Your answer.
When I change %JAVA_HOME% to the JDK 1.4.0 I get 7 errors instead of 3 with
JDK 1.3.1
Here is the result:

Any other mistakes I made?   I have both JDKs on the PC, I always change
%JAVA_HOME% to switch between them. Is this may be the problem? JDK 1.4.0
definitely doesnt work, I tried this and You can read this in the
mailing-archive (because of JDBC 3.0).

I used the CVS-Sources from today morning:

============================================================================
===========0
result with JDK 1.4.0

C:\>d:

D:\>cd daten

D:\DATEN>cd cvs-daten

D:\DATEN\CVS-Daten>cd opencms

D:\DATEN\CVS-Daten\OpenCMS>cd opencms

D:\DATEN\CVS-Daten\OpenCMS\opencms>dir
 
 Verzeichnis von D:\DATEN\CVS-Daten\OpenCMS\opencms

09.06.2002  11:42       <DIR>          .
09.06.2002  11:42       <DIR>          ..
08.05.2002  14:48               16.042 build.xml
08.05.2002  14:48                1.310 credits.html
09.06.2002  03:32       <DIR>          CVS
09.06.2002  03:32       <DIR>          doc
09.06.2002  03:32       <DIR>          etc
08.05.2002  14:48               56.704 history.txt
08.05.2002  14:48                6.381 install.html
08.05.2002  14:48               24.892 license.txt
09.06.2002  01:49       <DIR>          modules
09.06.2002  11:42                1.977 output_ant.txt
09.06.2002  01:49       <DIR>          patches
09.06.2002  03:32       <DIR>          src
09.06.2002  01:51       <DIR>          web
               6 Datei(en)        107.306 Bytes
               9 Verzeichnis(se),   9.511.460.864 Bytes frei

D:\DATEN\CVS-Daten\OpenCMS\opencms>ant all
Buildfile: build.xml

clean:
   [delete] Deleting directory D:\DATEN\CVS-Daten\OpenCMS\build

init:

initmsg:

prepare:
    [mkdir] Created dir: D:\DATEN\CVS-Daten\OpenCMS\build\classes
    [mkdir] Created dir:
D:\DATEN\CVS-Daten\OpenCMS\build\opencms\WEB-INF\lib
    [mkdir] Created dir:
D:\DATEN\CVS-Daten\OpenCMS\build\opencms\WEB-INF\oclib

compileclasses:
    [javac] Compiling 335 source files to
D:\DATEN\CVS-Daten\OpenCMS\build\class
es
    [javac]
D:\DATEN\CVS-Daten\OpenCMS\opencms\src\com\opencms\dbpool\CmsStateme
nt.java:40: com.opencms.dbpool.CmsStatement should be declared abstract; it
does
 not define getMoreResults(int) in com.opencms.dbpool.CmsStatement
    [javac] public class CmsStatement implements Statement {
    [javac]        ^
    [javac]
D:\DATEN\CVS-Daten\OpenCMS\opencms\src\com\opencms\dbpool\CmsPrepare
dStatement.java:42: com.opencms.dbpool.CmsPreparedStatement should be
declared a
bstract; it does not define setURL(int,java.net.URL) in
com.opencms.dbpool.CmsPr
eparedStatement
    [javac] public class CmsPreparedStatement extends CmsStatement
implements Pr
eparedStatement {
    [javac]        ^
    [javac]
D:\DATEN\CVS-Daten\OpenCMS\opencms\src\com\opencms\dbpool\CmsCallabl
eStatement.java:42: com.opencms.dbpool.CmsCallableStatement should be
declared a
bstract; it does not define registerOutParameter(java.lang.String,int) in
com.op
encms.dbpool.CmsCallableStatement
    [javac] public class CmsCallableStatement extends CmsPreparedStatement
imple
ments CallableStatement {
    [javac]        ^
    [javac]
D:\DATEN\CVS-Daten\OpenCMS\opencms\src\com\opencms\dbpool\CmsConnect
ion.java:40: com.opencms.dbpool.CmsConnection should be declared abstract;
it do
es not define setHoldability(int) in com.opencms.dbpool.CmsConnection
    [javac] public class CmsConnection implements Connection {
    [javac]        ^
    [javac]
D:\DATEN\CVS-Daten\OpenCMS\opencms\src\com\opencms\linkmanagement\Li
nkChecker.java:74: cannot resolve symbol
    [javac] symbol  : method getAllLinkTagValues  ()
    [javac] location: class com.opencms.template.CmsXmlTemplateFile
    [javac]         Vector result = bodyTemplateFile.getAllLinkTagValues();
    [javac]                                         ^
    [javac]
D:\DATEN\CVS-Daten\OpenCMS\opencms\src\com\opencms\linkmanagement\Li
nkChecker.java:114: cannot resolve symbol
    [javac] symbol  : method getOnlineBrokenLinks  ()
    [javac] location: class com.opencms.file.CmsObject
    [javac]             Vector result = cms.getOnlineBrokenLinks();
    [javac]                                ^
    [javac]
D:\DATEN\CVS-Daten\OpenCMS\opencms\src\com\opencms\linkmanagement\Li
nkChecker.java:123: cannot resolve symbol
    [javac] symbol  : method getBrokenLinks
(int,com.opencms.report.I_CmsReport
,java.util.Vector,java.util.Vector,java.util.Vector)
    [javac] location: class com.opencms.file.CmsObject
    [javac]             cms.getBrokenLinks(projectId, report, changed,
deleted,
newRes);
    [javac]                ^
    [javac] 7 errors

BUILD FAILED

D:\DATEN\CVS-Daten\OpenCMS\opencms\build.xml:134: Compile failed, messages
shoul
d have been provided.

Total time: 47 seconds
D:\DATEN\CVS-Daten\OpenCMS\opencms>
============================================================================
========


MARTIN




>   -----Ursprüngliche Nachricht-----
>   Von: Gustav Wurm [mailto:gw at w3shuttle.com]
>   Gesendet: Sonntag, 9. Juni 2002 14:47
>   An: opencms-dev at www.opencms.org
>   Betreff: Re: [opencms-dev] problems build opencms from 
>   source with ant
>   
>   
>   
>   ----- Original Message -----
>   From: "Bührle, Martin, FCI1" <martin.buehrle at lfk.eads.net>
>   To: <opencms-dev at www.opencms.org>
>   Sent: Sunday, June 09, 2002 1:55 PM
>   Subject: [opencms-dev] problems build opencms from source with ant
>   
>   
>   > HI List,
>   >
>   > I am getting error-messages when I try to compile the 
>   latest CVS-Sources
>   of
>   > opencms.
>   > First I downloaded the 4.6.1 sources, then I checked out 
>   the CVS-content,
>   as
>   > described.
>   >
>   > I am using
>   > jakarta ant 1.4.1
>   > tomcat 4.0.3
>   > JDK 1.3.1 (02), Sun
>   
>   try  to use J2sdk 1.4.0 SUN
>   our configuration ist exactly the same as Your´s, but we 
>   use  J2sdk 1.4.0
>   from SUN and it works
>   
>   bye
>   Gustav Wurm
>   
>   >
>   > I get the following errorr-messages:
>   >
>   >
>   ============================================================
>   ================
>   > ============
>   >
>   > D:\DATEN\CVS-Daten\OpenCMS\opencms>ant all
>   > Buildfile: build.xml
>   >
>   > clean:
>   >    [delete] Deleting directory D:\DATEN\CVS-Daten\OpenCMS\build
>   >
>   > init:
>   >
>   > initmsg:
>   >
>   > prepare:
>   >     [mkdir] Created dir: D:\DATEN\CVS-Daten\OpenCMS\build\classes
>   >     [mkdir] Created dir:
>   > D:\DATEN\CVS-Daten\OpenCMS\build\opencms\WEB-INF\lib
>   >     [mkdir] Created dir:
>   > D:\DATEN\CVS-Daten\OpenCMS\build\opencms\WEB-INF\oclib
>   >
>   > compileclasses:
>   >     [javac] Compiling 335 source files to
>   > D:\DATEN\CVS-Daten\OpenCMS\build\class
>   > es
>   >     [javac]
>   > 
>   D:\DATEN\CVS-Daten\OpenCMS\opencms\src\com\opencms\linkmanagement\Li
>   > nkChecker.java:74: cannot resolve symbol
>   >     [javac] symbol  : method getAllLinkTagValues  ()
>   >     [javac] location: class 
>   com.opencms.template.CmsXmlTemplateFile
>   >     [javac]         Vector result =
>   bodyTemplateFile.getAllLinkTagValues();
>   >     [javac]                                         ^
>   >     [javac]
>   > 
>   D:\DATEN\CVS-Daten\OpenCMS\opencms\src\com\opencms\linkmanagement\Li
>   > nkChecker.java:114: cannot resolve symbol
>   >     [javac] symbol  : method getOnlineBrokenLinks  ()
>   >     [javac] location: class com.opencms.file.CmsObject
>   >     [javac]             Vector result = 
>   cms.getOnlineBrokenLinks();
>   >     [javac]                                ^
>   >     [javac]
>   > 
>   D:\DATEN\CVS-Daten\OpenCMS\opencms\src\com\opencms\linkmanagement\Li
>   > nkChecker.java:123: cannot resolve symbol
>   >     [javac] symbol  : method getBrokenLinks
>   > (int,com.opencms.report.I_CmsReport
>   > ,java.util.Vector,java.util.Vector,java.util.Vector)
>   >     [javac] location: class com.opencms.file.CmsObject
>   >     [javac]             cms.getBrokenLinks(projectId, 
>   report, changed,
>   > deleted,
>   > newRes);
>   >     [javac]                ^
>   >     [javac] Note: Some input files use or override a 
>   deprecated API.
>   >     [javac] Note: Recompile with -deprecation for details.
>   >     [javac] 3 errors
>   >
>   > BUILD FAILED
>   >
>   > D:\DATEN\CVS-Daten\OpenCMS\opencms\build.xml:134: Compile 
>   failed, messages
>   > shoul
>   > d have been provided.
>   >
>   > Total time: 55 seconds
>   >
>   ============================================================
>   ================
>   > ========
>   >
>   >
>   > Any help?
>   >
>   >
>   >
>   > ============================================
>   > Martin Buehrle
>   > Telefax: 089 3179-8927
>   > Martin.Buehrle at lfk.eads.net
>   >
>   >
>   



More information about the opencms-dev mailing list