[jcifs] Re: Tell me please!
Jason Bainbridge
jbainbridge at gmail.com
Tue Aug 3 22:05:05 GMT 2004
Try:
java -classpath "c:\Program Files\Java\jcifs-0.9.5.jar" Get
Or:
java -classpath c:\Progra~1\Java\jcifs-0.9.5.jar Get
Regards,
Jason
On Tue, 3 Aug 2004 21:57:26 +0000 (UTC), haivmk <haivmk2007 at yahoo.com> wrote:
>
>
> haivmk <haivmk2007 <at> yahoo.com> writes:
>
> >
> > I dowloaded jcifs_0.9.5 with source and examples.But I can't run some
> > programs.For example:
> > First I can compile programs: javac -classpath [...]jcifs-0.9.5.jar [..]
> name
> > of program.java
> > But then when I type : java [..]name of program , one the same error
> > appeared : Exception in thread "main" java.lang.NoClassDefFoudError:....
> > Tell me please,Thank you very much.
> >
> >
>
>
> Hello,
> For example: one program
>
> *********************************************************************
> import jcifs.smb.SmbFile;
> import jcifs.smb.SmbFileInputStream;
> import java.io.FileOutputStream;
>
> public class Get {
>
> public static void main( String argv[] ) throws Exception {
>
> SmbFile f = new SmbFile( "smb://172.16.7.82/" ).listFiles(); //argv0] );
> SmbFileInputStream in = new SmbFileInputStream( f );
> FileOutputStream out = new FileOutputStream( f.getName() );
>
> long t0 = System.currentTimeMillis();
>
> byte[] b = new byte[8192];
> int n, tot = 0;
> long t1 = t0;
> while(( n = in.read( b )) > 0 ) {
> out.write( b, 0, n );
> tot += n;
> System.out.print( '#' );
> }
>
> long t = System.currentTimeMillis() - t0;
>
> System.out.println();
> System.out.println( tot + " bytes transfered in " + ( t / 1000 ) + "
> seconds at " + (( tot / 1000 ) / Math.max( 1, ( t / 1000 ))) + "Kbytes/sec" );
>
> in.close();
> out.close();
> }
> }
> *****************************************************************
> When I typed : java -classpath c:\Program Files\Java\jcifs-0.9.5.jar Get
> ------>ERROR:
> Exception in thread "main" java.lang.NoClassDefFoudError: Files\Java\jcifs-
> 0/9/5/jar
>
> I don't understand,Why?
> Tell me please!
>
>
More information about the jcifs
mailing list