[jcifs] need help to run the examples

ardi reddish41 at yahoo.com
Wed Apr 16 18:21:33 EST 2003


Thanks for the answer, 
but I guess I've already figured it out why..

It turned out that java run time program first seek
the default class of the library, but if I'm using
java to compile the jcifs examples with the option
-classpath *location-of-the-jcifs.jar* , I also must
add the "this directory path ( "./" in unix and "." in
windows).

Thanks..


--- Dan Dumont <Dan at canofsleep.com> wrote:
> Run the class without the .class extension
> 
> Example
> 
> 
> 'javac moo.java' will compile the class
> And 'java moo' will run it
> 
> -----Original Message-----
> From:
> jcifs-bounces+dan=canofsleep.com at lists.samba.org
>
[mailto:jcifs-bounces+dan=canofsleep.com at lists.samba.org]
> On Behalf Of ardi
> Sent: Tuesday, April 15, 2003 5:03 AM
> To: jcifs at lists.samba.org
> Subject: [jcifs] need help to run the examples
> 
> Hi.. all
> 
> I'm very interested in this jcifs project, but it
> sad
> to know that im very poor to java programming.
> Excuse me if this question is to basic for all of
> you
> and I guess it's about configuring java.
> I tried to find the answer on the net, but i didn't
> get anything. So I guess someone here will answer my
> question.
> 
> 
> I've download the jar file from the website and
> install the sun j2sdk v1.3.1. I tried to compile the
> examples from the jcifs directory and add the
> classpath to the jcifs jar file and it works well.
> But
> when I tried to run the class file also with
> classpath
> option directed to the jcifs jar file, i got an
> error
> like this :
> 
> Exception in thread "main"
> ClassDefNotFound(classfile....)
> 
> Why this error occurs..?? 
> I noticed that all of the java examples in that
> directory use the throws clause (throws Exception).
> Is
> this because I didn't add the class of the exception
> or something else in java environment that I should
> configured..?
> 
> Thanks all
> 
> -rd-
> 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
> 
> 
> 


__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com


More information about the jcifs mailing list