You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Vikas Phonsa <VP...@suz.com> on 2003/11/14 22:13:35 UTC

'class' or 'interface' expected

Hi, I am trying to compile the java source code generated by Torque and I
get lots of errors as given below. And I have made sure all the jars are in
class path.

And ideas ?

Thanks

----------------------------Errors-------------------------


C:\Downloads\Torque\torque-3.0\src\java\pitchers\torque\BaseGame.java:828:
'class' or 'interface' expected
    [javac] package pitchers.torque;
    [javac] ^
    [javac]
C:\Downloads\Torque\torque-3.0\src\java\pitchers\torque\BaseGame.java:831:
'class' or 'interface' expected
    [javac] import java.math.BigDecimal;
    [javac] ^
    [javac]
C:\Downloads\Torque\torque-3.0\src\java\pitchers\torque\BaseGame.java:832:
'class' or 'interface' expected
    [javac] import java.sql.Connection;
    [javac] ^
    [javac]
C:\Downloads\Torque\torque-3.0\src\java\pitchers\torque\BaseGame.java:833:
'class' or 'interface' expected
    [javac] import java.util.ArrayList;
    [javac] ^
    [javac]
C:\Downloads\Torque\torque-3.0\src\java\pitchers\torque\BaseGame.java:834:
'class' or 'interface' expected
    [javac] import java.util.Date;
    [javac] ^



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Re: 'class' or 'interface' expected

Posted by Emmanuel Florent <ef...@devaki.org>.
Check you classes parent's class specially the class who causes the 1st
error.
Any baseClass should extend org.apache.torque.om.BaseObject or any class
wich extend it.
Any basePeer should extend org.apache.torque.util.BasePeer only.

Thank You for your contribution. I'll addf it ti the FAQ.

EF

On Fri, 2003-11-14 at 22:13, Vikas Phonsa wrote:
> Hi, I am trying to compile the java source code generated by Torque and I
> get lots of errors as given below. And I have made sure all the jars are in
> class path.
> 
> And ideas ?
> 
> Thanks
> 
> ----------------------------Errors-------------------------
> 
> 
> C:\Downloads\Torque\torque-3.0\src\java\pitchers\torque\BaseGame.java:828:
> 'class' or 'interface' expected
>     [javac] package pitchers.torque;
>     [javac] ^
>     [javac]
> C:\Downloads\Torque\torque-3.0\src\java\pitchers\torque\BaseGame.java:831:
> 'class' or 'interface' expected
>     [javac] import java.math.BigDecimal;
>     [javac] ^
>     [javac]
> C:\Downloads\Torque\torque-3.0\src\java\pitchers\torque\BaseGame.java:832:
> 'class' or 'interface' expected
>     [javac] import java.sql.Connection;
>     [javac] ^
>     [javac]
> C:\Downloads\Torque\torque-3.0\src\java\pitchers\torque\BaseGame.java:833:
> 'class' or 'interface' expected
>     [javac] import java.util.ArrayList;
>     [javac] ^
>     [javac]
> C:\Downloads\Torque\torque-3.0\src\java\pitchers\torque\BaseGame.java:834:
> 'class' or 'interface' expected
>     [javac] import java.util.Date;
>     [javac] ^
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
> 
> 
>