Re: not able to run program which contains "import net.jini.core.event.RemoteEventListener"
Viswanadh Venkat <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
I have include the classpath while compiling.
Project
+
+audio
+
+++common
+ + Source.java
+ + Sink.java
+++transport
+ HttpSinkImp.java
+ HttpURL.java
This is how i am following the directory structure. I did compilation as
javac -classpatth /opt/jini2_1/lib/jini-core.jar:/opt/jini2_1/lib/jsk-lib.jar:/opt/Project/audio/ common/Source.java
The highlited color shows the package.
This is how i compiled, can you tell me what is the problem in this statement.
-Viswanadh.K
Jan Newmarch <[email protected]> wrote: Hi
These exceptions are in package audio.common and are part of the Audio
System. Your classpath should include these. It isn't a problem with
net.jini.core.event.* !
Jan
--
Jan
--
On Thu, 15 Mar 2007, Viswanadh wrote:
> Hi,
>
> I am trying to execute Extended Example "Home Audio System" from Jan's
> Online Tutorial. I got a problem while executing the
> audio.common.Source.java file. While compiling Source.java file, it shows
>
> common/Source.java:20: cannot find symbol
> symbol : class AlreadyPlayingException
> location: interface audio.common.Source
> void play() throws RemoteException, AlreadyPlayingException;
> ^
>
> common/Source.java:21: cannot find symbol
> symbol : class NotPlayingException
> location: interface audio.common.Source
> void stop() throws RemoteException, NotPlayingException;
> ......................
> .......................
> ......................
> 7 errors.
>
> I have started the JINI2_1 Service Browser and tried to compile the file using
>
> javac -classpath
> /opt/jini2_1/lib/jini-core.jar:/opt/jini2_1/lib/jsk-lib.jar:/opt/jini2_1/lib/jsk-platform.jar:/opt/audio/
> common/Source.java
>
> But it shows errors. I think Service Browser doesn't support for
> net.jini.core.event.* or it doesnt loaded/started jini.core.event.
>
> How can i solve this problem, anybody can please help me. I will be thankful
>
> Thanks in advance.
>
> -Viswanadh.K
>
> --------------------------------------------------------------------------
> 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]
>
Jan Newmarch
Email: [email protected]
WWW: http://jan.newmarch.name
Tel: +61 4 0117 0509
--------------------------------------------------------------------------
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]
---------------------------------
Heres a new way to find what you're looking for - Yahoo! Answers
--------------------------------------------------------------------------
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]