Here i attach the code of the program & error while compiling

Viswanadh Venkat <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <LISTSERV%[email protected]>
Source.java ( file from Jan Newmarch Online Tutorial )
-----------
/**
 * Source.java
 *
 *
 * Created: Fri Jun 27 08:35:55 2003
 *
 * @author <a href="mailto: [email protected]">jan newmarch</a>
 * @version 1.0
 */

package audio.common;

import java.rmi.RemoteException;
import net.jini.core.event.EventRegistration;
import net.jini.core.event.RemoteEventListener;
import java.rmi.MarshalledObject;

/**
 * A source for A/V data
 */

public interface Source extends java.rmi.Remote {

    int STOP = 1;

    void play() throws
                RemoteException,
         AlreadyPlayingException;
    void stop() throws
                RemoteException,
                NotPlayingException;
    void addSink(Sink sink) throws
                RemoteException,
                TooManySinksException,
                IncompatableSinkException;
    void removeSink(Sink sink) throws
                RemoteException,
                NoSuchSinkException;
    EventRegistration addSourceListener(RemoteEventListener listener,
     MarshalledObject handback) throws
         RemoteException;
}// Source

I saved this file in /opt/dev/streaming/src/audio/common/ location


Compiling
----------

[root@system3 src]# javac -classpath
/opt/jini2_1/lib/jini-core.jar:/opt/jini2_1/lib/sun-util.jar:
/opt/jini2_1/lib/jsk-platform.jar:/opt/jini2_1/lib/jsk-lib.jar:/opt/dev/streaming/src/
audio/common/Source.java -d /opt/dev/streaming/src/audio/common/

audio/common/Source.java:22: cannot find symbol
symbol  : class AlreadyPlayingException
location: interface audio.common.Source
                AlreadyPlayingException;
                ^
audio/common/Source.java:25: cannot find symbol
symbol  : class NotPlayingException
location: interface audio.common.Source
                NotPlayingException;
                ^
audio/common/Source.java:28: cannot find symbol
symbol  : class TooManySinksException
location: interface audio.common.Source
                TooManySinksException,
                ^
audio/common/Source.java:29: cannot find symbol
symbol  : class IncompatableSinkException
location: interface audio.common.Source
                IncompatableSinkException;
                ^
audio/common/Source.java:32: cannot find symbol
symbol  : class NoSuchSinkException
location: interface audio.common.Source
                NoSuchSinkException;
                ^
/opt/dev/streaming/src/audio/common/Sink.java:23: cannot find symbol
symbol  : class AlreadyRecordingException
location: interface audio.common.Sink
                AlreadyRecordingException;
                ^
/opt/dev/streaming/src/audio/common/Sink.java:26: cannot find symbol
symbol  : class NotRecordingException
location: interface audio.common.Sink
                NotRecordingException;
                ^
/opt/dev/streaming/src/audio/common/Sink.java:29: cannot find symbol
symbol  : class TooManySourcesException
location: interface audio.common.Sink
                TooManySourcesException,
                ^
/opt/dev/streaming/src/audio/common/Sink.java:30: cannot find symbol
symbol  : class IncompatableSourceException
location: interface audio.common.Sink
                IncompatableSourceException;
                ^
/opt/dev/streaming/src/audio/common/Sink.java:33: cannot find symbol
symbol  : class NoSuchSourceException
location: interface audio.common.Sink
                NoSuchSourceException;
                ^
/opt/dev/streaming/src/audio/common/Sink.java:39: cannot find symbol
symbol  : class NoSuchListenerException
location: interface audio.common.Sink
                NoSuchListenerException;
                ^
11 errors
[root@system3 src]#

I want help, please tell me how can i solve these errors. I couldnt find,
what i am doing wrong, but I think errors are  due to " net.jini.core.event.* ".

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.