[opencms-dev] How can recompile the News Modules' classes?

Mayur Solanki mayur at inflibnet.ac.in
Tue Sep 24 14:59:01 CEST 2002


Hello Stephan,

    Thanks Stephan appreciate your response.
    My purpose of implementation, I want to enhance some new functionality
to it.
    Ok....I will wait of your exact steps...Advanced thanks.

    Following errors ocurred while compiled the "NewsContentDefinition.java"
file.

------------------------  Start
rror  -----------------------------------------------------
NewsContentDefinition.java:18:
com.opencms.modules.homepage.news.NewsContentDefinition should be declared
abstract; it does not define getUniqueId(com.opencms.file.CmsObject) in
com.opencms.defaults.A_CmsContentDefinition
public class NewsContentDefinition extends
com.opencms.defaults.A_CmsContentDefinition implements
com.opencms.template.I_CmsContent
       ^
NewsContentDefinition.java:113: operator != cannot be applied to boolean,int
      if( res.next(  ) != 0 )  {
                       ^
NewsContentDefinition.java:121: cannot resolve symbol
symbol  : variable e
location: class com.opencms.modules.homepage.news.NewsContentDefinition
        e = res.getTimestamp( 8 );
        ^
NewsContentDefinition.java:122: cannot resolve symbol
symbol  : variable e
location: class com.opencms.modules.homepage.news.NewsContentDefinition
        tempDate = e;
                   ^
NewsContentDefinition.java:140: locVar_11 is already defined in
NewsContentDefinition(com.opencms.file.CmsObject,java.lang.Integer)
      catch( Exception locVar_11 ) {
                       ^
NewsContentDefinition.java:145: locVar_11 is already defined in
NewsContentDefinition(com.opencms.file.CmsObject,java.lang.Integer)
      catch( Exception locVar_11 ) {
                       ^
NewsContentDefinition.java:150: locVar_11 is already defined in
NewsContentDefinition(com.opencms.file.CmsObject,java.lang.Integer)
      catch( Exception locVar_11 ) {
                       ^
NewsContentDefinition.java:249: cannot resolve symbol
symbol  : method clearcache  (com.opencms.file.CmsObject)
location: class com.opencms.modules.homepage.news.NewsContentDefinition
    this.clearcache( cms );
    ^
NewsContentDefinition.java:280: locVar_10 is already defined in
write(com.opencms.file.CmsObject)
        catch( Exception locVar_10 ) {
                         ^
NewsContentDefinition.java:285: locVar_10 is already defined in
write(com.opencms.file.CmsObject)
        catch( Exception locVar_10 ) {
                         ^
NewsContentDefinition.java:289: cannot resolve symbol
symbol  : method update  (com.opencms.file.CmsObject,java.sql.Timestamp)
location: class com.opencms.modules.homepage.news.NewsContentDefinition
    this.update( cms, sqlDate );
    ^
total 11 errors.....
-------------------------  End
rror  ------------------------------------------------

Again thanks.

Mayur.



----- Original Message -----
From: Stephan Hartmann <hartmann at waehrisch-feykes.de>
To: <opencms-dev at www.opencms.org>
Sent: Tuesday, September 24, 2002 5:50 PM
Subject: Re: [opencms-dev] How can recompile the News Modules' classes?


> Hi,
>
> what exactly are you doing to compile it and what exact error message do
you
> get?
>
>
> Am Dienstag, 24. September 2002 14:19 schrieben Sie:
> > Hello,
> >
> >    I want to implement Java classes which are given inbuilt in News
Module.
> >    Definite i am able to implement...but how can recompile it?
> >
> >    When I compiled it on :
> >
/myservletpath/opencms/export/system/classes/com/opencms/modules/homepage/n
> >e ws/
> >    javac NewsContentDefinition.java
> >    It gives errors.
> >
> >    I think it can't able to call opencms's default classes like
> > "A_CmsContentDefinition" and
> >    "I_CmsContent".
> >
> >    Anybody can help me to solve my above question?
> >    Thanks in advanced.
> >
> > Mayur.





More information about the opencms-dev mailing list