Error : illegal start of type

Hi,

Im getting the compilation error "illegal start of type " when i compile the following interface in command prompt

package compute;

import java.rmi.Remote;

import java.rmi.RemoteException;

public interface Compute extends Remote

{

<T> T executeTask(Task<T> t) throws RemoteException;

}

But it gets compiled in my Eclipse.

Can anyone help me?

Message was edited by:

Soph

[466 byte] By [Sopha] at [2007-11-27 9:55:48]
# 1
type javac -version. You'll either get an error or something that's less than 1.5, which is when generics were introduced.You'll have to change your PATH (NOT CLASSPATH) variable to include your latest JDK--1.5 or 1.5--instead of 1.4 or whatever it's pointing to now.
jverda at 2007-7-13 0:25:51 > top of Java-index,Java Essentials,Java Programming...
# 2
Thanks a lot. Now it works.
Sopha at 2007-7-13 0:25:51 > top of Java-index,Java Essentials,Java Programming...