Re: not able to run program which contains "import net.jini.core.event.RemoteEventListener"

Gregg Wonderly <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Viswanadh Venkat wrote:
> 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.

This is an understanding java issue.  You need to read up on source vs class
files, what classpaths are made up of (class files not source .java files), how
directories and jar files are referenced in the classpath, and how to direct the
compiler to compile into a specific directory.

It appears that you should have /opt/Project in your class path as a directory,
but I am not aware of the exact directory structure you are using.  It also
appears that you want to use the -d argument to javac to cause it to write your
class files out to a particular directory, separate from the examples class
files, and that directory will also need to be in your class path.

Gregg Wonderly

--------------------------------------------------------------------------
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.